> ## 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.

# PFEntityGetEntityTokenAsync

> 获取实体的缓存 PFEntityToken。

获取实体的缓存 PFEntityToken。

## 语法

```cpp theme={null}
HRESULT PFEntityGetEntityTokenAsync(  
    PFEntityHandle entityHandle,  
    XAsyncBlock* async  
)  
```

### 参数

**`entityHandle`**   PFEntityHandle

从登录调用返回的 PFEntityHandle。

**`async`**   XAsyncBlock\*\
*输入/输出*

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 要求

**头文件：** PFEntity.h

## 另请参阅

[PFEntity 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfentity/pfentity_members.md)


## Related topics

- [PFEntityGetEntityTokenResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresult.md)
- [PFEntityGetEntityTokenResultSize](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresultsize.md)
- [Services C API overview - PFEntity.h](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [实体句柄](https://docs.xbox.com/zh-CN/services/playfab/sdks/c/entity-handles.md)
- [Get Entity Token](https://docs.xbox.com/api-reference/authentication/get-entity-token.md)
