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

# PFAccountManagementServerGetPlayFabIDsFromBattleNetAccountIdsAsync

> 適用於 Windows 的伺服器 API，可查詢一組 Battle.net 帳戶識別碼對應的 PlayFab ID，並使用遊戲實體控制代碼進行驗證。

擷取指定的一組 Battle.net 帳戶識別碼對應的唯一 PlayFab 識別碼。

## 語法

```cpp theme={null}
HRESULT PFAccountManagementServerGetPlayFabIDsFromBattleNetAccountIdsAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFAccountManagementGetPlayFabIDsFromBattleNetAccountIdsRequest* request,  
    XAsyncBlock* async  
)  
```

### 參數

**`titleEntityHandle`**   PFEntityHandle

使用 PFAuthenticationGetEntityWithSecretKeyAsync 取得之遊戲 Entity 的 PFEntityHandle。

**`request`**   [PFAccountManagementGetPlayFabIDsFromBattleNetAccountIdsRequest\*](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementgetplayfabidsfrombattlenetaccountidsrequest)

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 適用於 Windows。非同步工作完成時，呼叫 [PFAccountManagementServerGetPlayFabIDsFromBattleNetAccountIdsGetResultSize](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayfabidsfrombattlenetaccountidsgetresultsize) 和 [PFAccountManagementServerGetPlayFabIDsFromBattleNetAccountIdsGetResult](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayfabidsfrombattlenetaccountidsgetresult) 以取得結果。

## 需求

**標頭：** PFAccountManagement.h

## 另請參閱

[PFAccountManagement 成員](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)


## Related topics

- [PFAccountManagementServerGetPlayFabIDsFromBattleNetAccountIdsGetResult](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayfabidsfrombattlenetaccountidsgetresult.md)
- [服務 C API 概觀 - PFAccountManagement.h](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)
- [PFAccountManagementServerGetPlayFabIDsFromBattleNetAccountIdsGetResultSize](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayfabidsfrombattlenetaccountidsgetresultsize.md)
- [Get Play Fab IDs From Battle Net Account Ids](/api-reference/account-management/get-play-fab-ids-from-battle-net-account-ids.md)
- [PFAccountManagementClientGetPlayFabIDsFromBattleNetAccountIdsAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientgetplayfabidsfrombattlenetaccountidsasync.md)
