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

# PFAccountManagementServerUnlinkBattleNetAccountAsync

> Battle.net アカウントとユーザーの PlayFab アカウントのリンクを解除するサーバー API。タイトル エンティティ ハンドルで認証されます。Windows でのみ使用できます。

関連する Battle.net アカウントとユーザーの PlayFab アカウントのリンクを解除します。

## 構文

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

### パラメーター

**`titleEntityHandle`**   PFEntityHandle

PFAuthenticationGetEntityWithSecretKeyAsync を使用して取得したタイトル Entity 用の PFEntityHandle。

**`request`**   [PFAccountManagementServerUnlinkBattleNetAccountRequest\*](/ja-jp/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverunlinkbattlenetaccountrequest)

値が設定されたリクエスト オブジェクト。

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API は Windows で使用できます。ServerLinkBattleNetAccountAsync も参照してください。操作の状態を取得するには、XAsyncGetStatus を呼び出します。サービス呼び出しが失敗した場合、非同期の結果は E\_PF\_ACCOUNT\_NOT\_LINKED、E\_PF\_BATTLE\_NET\_NOT\_ENABLED\_FOR\_TITLE、または PlayFab サービスのグローバル エラーのいずれかになります。エラー処理の詳細については、ドキュメント ページ「Handling PlayFab Errors」を参照してください。

## 要件

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

## 関連項目

[PFAccountManagement メンバー](/ja-jp/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)


## Related topics

- [Unlink Battle Net Account](/api-reference/account-management/unlink-battle-net-account.md)
- [PFAccountManagementServerUnlinkBattleNetAccountRequest](/ja-jp/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverunlinkbattlenetaccountrequest.md)
- [PFAccountManagementServerLinkBattleNetAccountAsync](/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinkbattlenetaccountasync.md)
- [PFAccountManagementClientUnlinkBattleNetAccountAsync](/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientunlinkbattlenetaccountasync.md)
- [PFAccountManagementClientUnlinkBattleNetAccountRequest](/ja-jp/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementclientunlinkbattlenetaccountrequest.md)
