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

# PartyNetwork

> Represents a network.

Represents a network.

## Syntax

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

## Public Methods

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


## Related topics

- [PartyNetwork::LeaveNetwork](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_leavenetwork.md)
- [PartyNetwork::GetNetworkDescriptor](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkdescriptor.md)
- [PartyNetwork::CreateEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint.md)
- [PartyNetwork::GetInvitations](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getinvitations.md)
- [PartyNetwork::GetEndpoints](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getendpoints.md)
