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

# PFEntityGetEntityTokenResult

> 取得成功之 PFEntityGetEntityTokenAsync 呼叫的結果。

取得成功之 PFEntityGetEntityTokenAsync 呼叫的結果。

## 語法

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

### 參數

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

用於非同步作業的 XAsyncBlock。

**`bufferSize`**   size\_t

結果物件的緩衝區大小。

**`buffer`**   void\*\
\**Out\_writes\_bytes\_to*(bufferSize,*bufferUsed)*

用於結果值及其欄位的位元組緩衝區。

**`entityToken`**   [PFEntityToken\*\*](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfentity/structs/pfentitytoken.md)\
*library-allocated output*

EntityToken 物件的指標。

**`bufferUsed`**   size\_t\*\
*optional output*

所提供緩衝區中已使用的位元組數目。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

entityToken 是緩衝區內的指標，不需要另外釋放。

## 需求

**標頭：** PFEntity.h

## 另請參閱

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


## Related topics

- [服務 C API 概觀 - PFEntity.h](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [實體控制代碼](https://docs.xbox.com/zh-TW/services/playfab/sdks/c/entity-handles.md)
- [PFEntityGetEntityTokenResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresultsize.md)
- [PFAuthenticationValidateEntityTokenGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
- [Get Entity Token](https://docs.xbox.com/api-reference/authentication/get-entity-token.md)
