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

# PFAuthenticationGetEntityGetResult

> PFAuthenticationGetEntityAsync 呼び出しが成功したときの結果を取得します。

PFAuthenticationGetEntityAsync 呼び出しが成功したときの結果を取得します。

## 構文

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

### パラメーター

**`async`**   XAsyncBlock\*<br />*Inout*

非同期操作用の XAsyncBlock。

**`entityHandle`**   PFEntityHandle\*<br />*output*

他の PlayFab API 呼び出しの認証に使用できる PFEntityHandle。

### 戻り値

型: HRESULT

この API 操作の結果コード。サービス呼び出しが失敗した場合、結果は E\_PF\_ENCRYPTION\_KEY\_BROKEN, E\_PF\_NO\_VALID\_CERTIFICATE\_FOR\_AAD のいずれか、またはグローバルな PlayFab サービス エラーのいずれかになります。エラー処理の詳細については、ドキュメント ページ「Handling PlayFab Errors」を参照してください。

## 解説

PFAuthenticationGetEntityAsync 呼び出しが失敗した場合、entityHandle は null になります。それ以外の場合、ハンドルは不要になった時点で PFEntityCloseHandle を使用してクローズする必要があります。

## 要件

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

## 関連項目

[PFAuthentication のメンバー](/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationGetEntityAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentityasync.md)
- [Services C API overview - PFAuthentication.h](/ja-jp/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationGetEntityWithSecretKeyGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitywithsecretkeygetresult.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)
