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

# PFProfilesGetProfileAsync

> 擷取單一實體的 PlayFab 實體設定檔，包括與指定實體索引鍵相關聯的顯示名稱、虛擬人偶、統計資料和物件。

擷取實體的設定檔。

## 語法

```cpp theme={null}
HRESULT PFProfilesGetProfileAsync(  
    PFEntityHandle entityHandle,  
    const PFProfilesGetEntityProfileRequest* request,  
    XAsyncBlock* async  
)  
```

### 參數

**`entityHandle`**   PFEntityHandle

用於驗證的 PFEntityHandle。

**`request`**   [PFProfilesGetEntityProfileRequest\*](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfprofilestypes/structs/pfprofilesgetentityprofilerequest.md)

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 適用於所有平台。給定實體類型和實體識別碼，即會從實體存放區擷取設定檔。如果擷取的是呼叫者自己的設定檔，則讀取作業具有一致性；否則為不一致的讀取。不一致的讀取表示我們不保證在讀取設定檔之前，所有已認可的寫入都已完成，因此可能讀取到過時的資料。如果一致性很重要，可以使用結果中的版本號碼來比較任何讀取者所擁有的設定檔版本。非同步工作完成時，請呼叫 [PFProfilesGetProfileGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfprofiles/functions/pfprofilesgetprofilegetresultsize.md) 和 [PFProfilesGetProfileGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfprofiles/functions/pfprofilesgetprofilegetresult.md) 以取得結果。

## 需求

**標頭：** PFProfiles.h

## 另請參閱

[PFProfiles 成員](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfprofiles/pfprofiles_members.md)


## Related topics

- [PFProfilesGetProfileGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfprofiles/functions/pfprofilesgetprofilegetresult.md)
- [服務 C API 概觀 - PFProfiles.h](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfprofiles/pfprofiles_members.md)
- [在 PlayFab Unified SDK 中進行非同步呼叫](https://docs.xbox.com/zh-TW/services/playfab/sdks/unified-sdk/async-model.md)
- [進行非同步呼叫](https://docs.xbox.com/zh-TW/services/playfab/sdks/c/async.md)
- [PFProfilesGetProfilesAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfprofiles/functions/pfprofilesgetprofilesasync.md)
