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

# PFAuthenticationGetEntityWithSecretKeyGetResult

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

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

## 構文

```cpp theme={null}
HRESULT PFAuthenticationGetEntityWithSecretKeyGetResult(  
    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」を参照してください。

## 解説

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

## 要件

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

## 関連項目

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


## Related topics

- [PFAuthenticationGetEntityWithSecretKeyAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitywithsecretkeyasync.md)
- [PFEntityGetSecretKey](/ja-jp/services/playfab/api-references/c/pfentity/functions/pfentitygetsecretkey.md)
- [PFEntityGetSecretKeySize](/ja-jp/services/playfab/api-references/c/pfentity/functions/pfentitygetsecretkeysize.md)
- [PFAuthenticationGetEntityGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitygetresult.md)
- [PFAuthenticationGetEntityRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationgetentityrequest.md)
