> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFAuthenticationValidateEntityTokenGetResultSize

> 获取存储 ValidateEntityToken 调用结果所需的字节大小。

获取存储 ValidateEntityToken 调用结果所需的字节大小。

## 语法

```cpp theme={null}
HRESULT PFAuthenticationValidateEntityTokenGetResultSize(  
    XAsyncBlock* async,  
    size_t* bufferSize  
)  
```

### 参数

**`async`**   XAsyncBlock\*\
*Inout*

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t\*\
*output*

存储结果所需的缓冲区大小（以字节为单位）。

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用失败，结果将是任一全局 PlayFab 服务错误。有关错误处理的更多详细信息，请参阅文档页“处理 PlayFab 错误”。

## 要求

**头文件：** PFAuthentication.h

## 另请参阅

[PFAuthentication 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)


## Related topics

- [PFAuthenticationValidateEntityTokenAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokenasync.md)
- [服务 C API 概览 - PFAuthentication.h](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationValidateEntityTokenGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
- [PFEntityGetEntityTokenResultSize](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresultsize.md)
- [Validate Entity Token](https://docs.xbox.com/api-reference/authentication/validate-entity-token.md)
