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

# PFAccountManagementServerUnlinkServerCustomIdAsync

> 从用户的 PlayFab 账户中取消关联自定义服务器标识符。

从用户的 PlayFab 账户中取消关联自定义服务器标识符。

## 语法

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

### 参数

**`titleEntityHandle`**   PFEntityHandle

使用 PFAuthenticationGetEntityWithSecretKeyAsync 获得的标题实体的 PFEntityHandle。

**`request`**   [PFAccountManagementUnlinkServerCustomIdRequest\*](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementunlinkservercustomidrequest.md)

已填充的请求对象。

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

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 适用于 Win32、Linux 和 macOS。 另请参阅 ServerLinkServerCustomIdAsync, ServerLoginWithServerCustomIdAsync。 调用 XAsyncGetStatus 以获取操作的状态。 如果服务调用不成功，异步结果将是 E\_PF\_ACCOUNT\_NOT\_LINKED, E\_PF\_IDENTIFIER\_NOT\_LINKED 或任何全局 PlayFab 服务错误。 有关错误处理的详细信息，请参阅文档页面 "Handling PlayFab Errors"。

## 要求

**头文件：** PFAccountManagement.h

## 另请参阅

[PFAccountManagement 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)


## Related topics

- [Unlink Server Custom Id](https://docs.xbox.com/api-reference/account-management/unlink-server-custom-id.md)
- [PFAccountManagementUnlinkServerCustomIdRequest](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementunlinkservercustomidrequest.md)
- [PFAccountManagementServerUnlinkPSNAccountRequest](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverunlinkpsnaccountrequest.md)
- [PFAccountManagementServerUnlinkSteamIdAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverunlinksteamidasync.md)
- [PFAccountManagementServerUnlinkNintendoServiceAccountRequest](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverunlinknintendoserviceaccountrequest.md)
