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

# PFAuthenticationGetEntityWithSecretKeyGetResult

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

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

## 構文

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

### パラメーター

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

非同期操作用の XAsyncBlock。

**`entityHandle`**   PFEntityHandle\*\
*output*

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

### 戻り値

型: HRESULT

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

## 解説

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

## 要件

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

## 関連項目

[PFAuthentication のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)


## Related topics

- [PFAuthenticationGetEntityWithSecretKeyAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitywithsecretkeyasync.md)
- [PFEntityGetSecretKey](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfentity/functions/pfentitygetsecretkey.md)
- [PFEntityGetSecretKeySize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfentity/functions/pfentitygetsecretkeysize.md)
- [PFAuthenticationGetEntityGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitygetresult.md)
- [Get Entity Token](https://docs.xbox.com/api-reference/authentication/get-entity-token.md)
