> ## 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 成員](/zh-TW/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationGetEntityWithSecretKeyAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitywithsecretkeyasync.md)
- [PFEntityGetSecretKey](/zh-TW/services/playfab/api-references/c/pfentity/functions/pfentitygetsecretkey.md)
- [PFEntityGetSecretKeySize](/zh-TW/services/playfab/api-references/c/pfentity/functions/pfentitygetsecretkeysize.md)
- [PFAuthenticationGetEntityGetResult](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitygetresult.md)
- [PFAuthenticationGetEntityAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentityasync.md)
