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

> Gets the network associated with this endpoint.

Gets the network associated with this endpoint.

## Syntax

```cpp theme={null}
PartyError GetNetwork(  
    PartyNetwork** network  
)  
```

### Parameters

**`network`**   [PartyNetwork\*\*](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/partynetwork)\
*library-allocated output*

The output network associated with this endpoint.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Requirements

**Header:** Party.h

## See also

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


## Related topics

- [PartyEndpoint::GetUniqueIdentifier](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getuniqueidentifier.md)
- [PartyEndpoint::GetSharedProperty](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getsharedproperty.md)
- [PartyEndpoint::GetLocal](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getlocal.md)
- [PartyEndpoint::GetDevice](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getdevice.md)
- [PartyEndpoint::GetEntityId](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentityid.md)
