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

# PFAccountManagementServerLinkNintendoSwitchDeviceIdAsync

> API serveur permettant de lier un identificateur d'appareil Nintendo Switch à un compte de joueur PlayFab spécifié afin que l'appareil puisse se connecter lors de sessions futures.

Lie le NintendoSwitchDeviceId au compte PlayFab de l'utilisateur

## Syntaxe

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

### Paramètres

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle pour une entité de titre obtenue à l'aide de PFAuthenticationGetEntityWithSecretKeyAsync.

**`request`**   [PFAccountManagementServerLinkNintendoSwitchDeviceIdRequest\*](/fr-CA/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverlinknintendoswitchdeviceidrequest)

Objet de requête rempli.

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

XAsyncBlock pour l'opération asynchrone.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API.

## Notes

Cette API est disponible sur Win32, Linux et macOS. Voir aussi ServerUnlinkNintendoSwitchDeviceIdAsync. Appelez XAsyncGetStatus pour obtenir l'état de l'opération. Si l'appel de service échoue, le résultat asynchrone sera E\_PF\_LINKED\_ACCOUNT\_ALREADY\_CLAIMED ou l'une des erreurs globales du service PlayFab. Consultez la page de documentation « Handling PlayFab Errors » pour plus de détails sur la gestion des erreurs.

## Configuration requise

**En-tête :** PFAccountManagement.h

## Voir aussi

[Membres de PFAccountManagement](/fr-CA/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)


## Related topics

- [PFAccountManagementServerLinkNintendoSwitchDeviceIdRequest](/fr-CA/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverlinknintendoswitchdeviceidrequest.md)
- [PFAccountManagementServerUnlinkNintendoSwitchDeviceIdAsync](/fr-CA/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverunlinknintendoswitchdeviceidasync.md)
- [PFAccountManagementClientLinkNintendoSwitchDeviceIdAsync](/fr-CA/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinknintendoswitchdeviceidasync.md)
- [PFAccountManagementClientLinkNintendoSwitchDeviceIdRequest](/fr-CA/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementclientlinknintendoswitchdeviceidrequest.md)
- [PFAccountManagementClientUnlinkNintendoSwitchDeviceIdAsync](/fr-CA/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientunlinknintendoswitchdeviceidasync.md)
