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

# PFEntityGetEntityTokenResult

> 获取成功的 PFEntityGetEntityTokenAsync 调用的结果。

获取成功的 PFEntityGetEntityTokenAsync 调用的结果。

## 语法

```cpp theme={null}
HRESULT PFEntityGetEntityTokenResult(  
    XAsyncBlock* async,  
    size_t bufferSize,  
    void* buffer,  
    const PFEntityToken** entityToken,  
    size_t* bufferUsed  
)  
```

### 参数

**`async`**   XAsyncBlock\*<br />*输入/输出*

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t

结果对象的缓冲区大小。

**`buffer`**   void\*<br />\**Out\_writes\_bytes\_to*(bufferSize,*bufferUsed)*

用于结果值及其字段的字节缓冲区。

**`entityToken`**   [PFEntityToken\*\*](/services/playfab/api-references/c/pfentity/structs/pfentitytoken)<br />*库分配的输出*

指向 EntityToken 对象的指针。

**`bufferUsed`**   size\_t\*<br />*可选输出*

所提供缓冲区中已使用的字节数。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

entityToken 是指向 buffer 内部的指针，无需单独释放。

## 要求

**头文件：** PFEntity.h

## 另请参阅

[PFEntity 成员](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [Services C API overview - PFEntity.h](/zh-CN/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [实体句柄](/zh-CN/services/playfab/sdks/c/entity-handles.md)
- [PFEntityGetEntityTokenResultSize](/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresultsize.md)
- [PFAuthenticationValidateEntityTokenGetResult](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
- [PFAuthenticationValidateEntityTokenGetResultSize](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresultsize.md)
