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

# PFAccountManagementServerLinkPSNAccountAsync

> API de servidor que vincula uma conta PlayStation Network à conta PlayFab de um usuário por meio de um código de acesso e de um identificador de entidade de título no Windows, Linux e macOS.

Vincula a conta PlayStation :tm: Network associada ao código de acesso fornecido à conta PlayFab do usuário

## Sintaxe

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

### Parâmetros

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle para uma Entity de título obtida usando PFAuthenticationGetEntityWithSecretKeyAsync.

**`request`**   [PFAccountManagementServerLinkPSNAccountRequest\*](/pt-BR/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementserverlinkpsnaccountrequest)

Objeto de solicitação preenchido.

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

XAsyncBlock para a operação assíncrona.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API.

## Comentários

Esta API está disponível no Windows, Linux e macOS. Consulte também ServerUnlinkPSNAccountAsync. Chame XAsyncGetStatus para obter o status da operação. Se a chamada de serviço não for bem-sucedida, o resultado assíncrono será E\_PF\_ACCOUNT\_ALREADY\_LINKED, E\_PF\_ACCOUNT\_NOT\_FOUND, E\_PF\_DOWNSTREAM\_SERVICE\_UNAVAILABLE, E\_PF\_INVALID\_NAMESPACE\_MISMATCH, E\_PF\_INVALID\_PARAMS, E\_PF\_INVALID\_PSN\_AUTH\_CODE, E\_PF\_INVALID\_PSN\_ISSUER\_ID, E\_PF\_LINKED\_ACCOUNT\_ALREADY\_CLAIMED, E\_PF\_PSN\_INACCESSIBLE, E\_PF\_PSN\_NEXT\_GEN\_NOT\_CONFIGURED\_FOR\_TITLE, E\_PF\_REQUEST\_VIEW\_CONSTRAINT\_PARAMS\_NOT\_ALLOWED ou qualquer um dos erros globais do Serviço PlayFab. Consulte a página de documentação "Handling PlayFab Errors" para obter mais detalhes sobre o tratamento de erros.

## Requisitos

**Cabeçalho:** PFAccountManagement.h

## Confira também

[Membros de PFAccountManagement](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)


## Related topics

- [PFAccountManagementServerLinkXboxAccountAsync](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinkxboxaccountasync.md)
- [PFAccountManagementServerLinkNintendoServiceAccountAsync](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinknintendoserviceaccountasync.md)
- [PFAccountManagementServerLinkBattleNetAccountAsync](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinkbattlenetaccountasync.md)
- [PFAccountManagementServerLinkPSNIdAsync](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinkpsnidasync.md)
- [PFAccountManagementServerLinkNintendoServiceAccountSubjectAsync](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverlinknintendoserviceaccountsubjectasync.md)
