> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyNetwork

> Represents a network.

Represents a network.

## Syntax

```cpp theme={null}
class PartyNetwork  
```

## Public Methods

| Name | Description |
| - | - |
| [AuthenticateLocalUser](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_authenticatelocaluser.md) | Queues an asynchronous operation to authenticate the specified local user into the network. |
| [RemoveLocalUser](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_removelocaluser.md) | Queues an asynchronous operation to remove a local user from the network. |
| [CreateInvitation](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createinvitation.md) | Queues an asynchronous attempt to create an invitation for the network. |
| [RevokeInvitation](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_revokeinvitation.md) | Queues an asynchronous attempt to revoke an invitation from the network. |
| [GetInvitations](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getinvitations.md) | Gets an array containing all invitations exposed to the local device. |
| [CreateEndpoint](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint.md) | Queues an asynchronous attempt to create a local endpoint. |
| [DestroyEndpoint](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_destroyendpoint.md) | Queues an asynchronous operation to destroy a local endpoint. |
| [LeaveNetwork](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_leavenetwork.md) | Queues an asynchronous operation to leave the network gracefully. |
| [GetEndpoints](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getendpoints.md) | Gets the endpoints in this network. |
| [GetEndpointsByUserType](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getendpointsbyusertype.md) | Gets a subset of endpoints in this network filtered by user type and owning device location. |
| [FindEndpointByUniqueIdentifier](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_findendpointbyuniqueidentifier.md) | Finds the endpoint with the corresponding network-unique identifier in this network, if it exists. |
| [GetDevices](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getdevices.md) | Gets the devices in this network. |
| [GetLocalUsers](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getlocalusers.md) | Gets an array containing the local users that are authenticated or authenticating into the network. |
| [GetNetworkDescriptor](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkdescriptor.md) | Gets the network descriptor for this network. |
| [GetNetworkConfiguration](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkconfiguration.md) | Gets the network configuration which was set when creating the network. |
| [ConnectChatControl](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_connectchatcontrol.md) | Connects the local chat control to the network. |
| [DisconnectChatControl](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_disconnectchatcontrol.md) | Disconnects the local chat control from the network. |
| [GetChatControls](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getchatcontrols.md) | Gets the chat controls connected to this network. |
| [GetNetworkStatistics](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkstatistics.md) | Gets one or more statistic counter values for the network. |
| [GetCustomContext](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getcustomcontext.md) | Retrieves the app's private, custom pointer-sized context value previously associated with this network object. |
| [SetCustomContext](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_setcustomcontext.md) | Configures an optional, custom pointer-sized context value with this network object. |
| [GetDeviceConnectionType](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getdeviceconnectiontype.md) | Retrieves the type of connection used by the local device for transmitting messages or chat data to the specified target device in this network. |

## Requirements

**Header:** Party.h

## See also

[Party members](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/party_members.md)


## Related topics

- [PartyNetwork::LeaveNetwork](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_leavenetwork.md)
- [PartyNetwork::GetNetworkDescriptor](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkdescriptor.md)
- [PartyNetwork::GetNetworkConfiguration](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkconfiguration.md)
- [PartyNetwork::GetNetworkStatistics](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkstatistics.md)
- [PartyNetwork::CreateEndpoint](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint.md)
