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

> 使用游戏实体句柄进行身份验证的服务器 API，用于从用户的 PlayFab 帐户取消链接 Battle.net 帐户。仅在 Windows 上可用。

从用户的 PlayFab 帐户取消链接相关的 Battle.net 帐户。

## 语法

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

### 参数

**`titleEntityHandle`**   PFEntityHandle

使用 PFAuthenticationGetEntityWithSecretKeyAsync 获取的游戏 Entity 的 PFEntityHandle。

**`request`**   [PFAccountManagementServerUnlinkBattleNetAccountRequest\*](/zh-CN/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 服务错误。有关错误处理的更多详细信息，请参阅文档页"处理 PlayFab 错误"。

## 要求

**头文件：** PFAccountManagement.h

## 另请参阅

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


## Related topics

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