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

# PartyEndpoint::GetDevice

> Obtém o dispositivo associado a este ponto de extremidade.

Obtém o dispositivo associado a este ponto de extremidade.

## Sintaxe

```cpp theme={null}
PartyError GetDevice(  
    PartyDevice** device  
)  
```

### Parâmetros

**`device`**   [PartyDevice\*\*](/pt-BR/services/playfab/multiplayer/networking/reference/classes/PartyDevice/partydevice)\
*saída alocada pela biblioteca*

O dispositivo de saída associado a este ponto de extremidade.

### Valor retornado

PartyError

`c_partyErrorSuccess` se a chamada tiver êxito ou um código de erro caso contrário. A forma legível do código de erro pode ser obtida por meio de [PartyManager::GetErrorMessage()](/pt-BR/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Requisitos

**Cabeçalho:** Party.h

## Confira também

[PartyEndpoint](/pt-BR/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/partyendpoint)


## Related topics

- [PartyEndpoint::GetLocal](/pt-BR/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getlocal.md)
- [PartyEndpoint::GetNetwork](/pt-BR/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getnetwork.md)
- [PartyEndpoint::GetEntityId](/pt-BR/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentityid.md)
- [PartyEndpoint::GetEntityType](/pt-BR/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentitytype.md)
- [PartyEndpoint::GetCustomContext](/pt-BR/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getcustomcontext.md)
