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

# PFAccountManagementServerUnlinkXboxAccountAsync

> 伺服器 API，可從指定的 PlayFab 玩家帳戶取消連結 XBOX Live 帳戶，並移除該玩家以 XBOX Live 登入的選項。

從使用者的 PlayFab 帳戶取消連結相關的 XBOX Live 帳戶

## 語法

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

### 參數

**`titleEntityHandle`**   PFEntityHandle

使用 PFAuthenticationGetEntityWithSecretKeyAsync 取得之 Title 實體的 PFEntityHandle。

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

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 適用於 Win32、Linux 和 macOS。另請參閱 ServerLinkXboxAccountAsync。呼叫 XAsyncGetStatus 以取得作業狀態。如果服務呼叫失敗，非同步結果將為 E\_PF\_ACCOUNT\_NOT\_LINKED、E\_PF\_INVALID\_XBOX\_LIVE\_TOKEN 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFAccountManagement.h

## 另請參閱

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


## Related topics

- [PFAccountManagementServerUnlinkPSNAccountAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverunlinkpsnaccountasync.md)
- [PFAccountManagementServerUnlinkNintendoServiceAccountAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverunlinknintendoserviceaccountasync.md)
- [PFAccountManagementServerUnlinkBattleNetAccountAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverunlinkbattlenetaccountasync.md)
- [PFAccountManagementServerUnlinkXboxAccountRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverunlinkxboxaccountrequest.md)
- [PFAccountManagementServerLinkXboxAccountAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinkxboxaccountasync.md)
