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

> Obtiene el dispositivo asociado a este punto de conexión.

Obtiene el dispositivo asociado a este punto de conexión.

## Sintaxis

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

### Parámetros

**`device`**   [PartyDevice\*\*](/services/playfab/multiplayer/networking/reference/classes/PartyDevice/partydevice)\
*salida asignada por la biblioteca*

El dispositivo de salida asociado a este punto de conexión.

### Valor devuelto

PartyError

`c_partyErrorSuccess` si la llamada se realizó correctamente o un código de error en caso contrario. La forma legible del código de error se puede recuperar mediante [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Requisitos

**Encabezado:** Party.h

## Consulte también

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


## Related topics

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