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

# PFAccountManagementServerLinkNintendoServiceAccountAsync

> トークンに関連付けられた Nintendo アカウントを、ユーザーの PlayFab アカウントにリンクします

トークンに関連付けられた Nintendo アカウントを、ユーザーの PlayFab アカウントにリンクします

## 構文

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

### パラメーター

**`titleEntityHandle`**   PFEntityHandle

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

**`request`**   [PFAccountManagementServerLinkNintendoServiceAccountRequest\*](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverlinknintendoserviceaccountrequest)

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

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

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

## 要件

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

## 関連項目

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


## Related topics

- [PFAccountManagementServerLinkNintendoServiceAccountSubjectAsync](/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinknintendoserviceaccountsubjectasync.md)
- [PFAccountManagementServerUnlinkNintendoServiceAccountAsync](/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverunlinknintendoserviceaccountasync.md)
- [PFAccountManagementServerLinkNintendoServiceAccountRequest](/ja-jp/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverlinknintendoserviceaccountrequest.md)
- [PFAccountManagementServerLinkNintendoSwitchDeviceIdAsync](/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinknintendoswitchdeviceidasync.md)
- [PFAccountManagementClientLinkNintendoServiceAccountAsync](/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinknintendoserviceaccountasync.md)
