> ## 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 />*Inout*

非同期操作用の XAsyncBlock。

**`bufferSize`**   size\_t

結果オブジェクト用のバッファーのサイズ。

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

結果の値とそのフィールドに使用するバイト バッファー。

**`entityToken`**   [PFEntityToken\*\*](/services/playfab/api-references/c/pfentity/structs/pfentitytoken)<br />*library-allocated output*

EntityToken オブジェクトへのポインター。

**`bufferUsed`**   size\_t\*<br />*optional output*

指定されたバッファーのうち、使用されたバイト数。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

entityToken は buffer 内のポインターであり、個別に解放する必要はありません。

## 要件

**ヘッダー:** PFEntity.h

## 関連項目

[PFEntity メンバー](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [Services C API overview - PFEntity.h](/ja-jp/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [エンティティハンドル](/ja-jp/services/playfab/sdks/c/entity-handles.md)
- [PFEntityGetEntityTokenResultSize](/ja-jp/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresultsize.md)
- [PFAuthenticationValidateEntityTokenGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
- [PFAuthenticationValidateEntityTokenGetResultSize](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresultsize.md)
