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

# PFAccountManagementServerLinkServerCustomIdAsync

> タイトルによって生成されたカスタム サーバー識別子を、ユーザーの PlayFab アカウントにリンクします。

タイトルによって生成されたカスタム サーバー識別子を、ユーザーの PlayFab アカウントにリンクします。

## 構文

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

### パラメーター

**`titleEntityHandle`**   PFEntityHandle

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

**`request`**   [PFAccountManagementLinkServerCustomIdRequest\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkservercustomidrequest.md)

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

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

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

## 要件

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

## 関連項目

[PFAccountManagement メンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)


## Related topics

- [Link Server Custom Id](https://docs.xbox.com/api-reference/account-management/link-server-custom-id.md)
- [PFAccountManagementLinkServerCustomIdRequest](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkservercustomidrequest.md)
- [PFAccountManagementServerUnlinkServerCustomIdAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverunlinkservercustomidasync.md)
- [PFAccountManagementServerLinkPSNIdAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinkpsnidasync.md)
- [PFAccountManagementServerLinkSteamIdAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinksteamidasync.md)
