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

# PartyConnectToNetworkCompletedStateChange

> Information specific to the *ConnectToNetworkCompleted* type of state change.

Information specific to the *ConnectToNetworkCompleted* type of state change.

## Syntax

```cpp theme={null}
struct PartyConnectToNetworkCompletedStateChange : PartyStateChange {  
    PartyStateChangeResult result;  
    PartyError errorDetail;  
    PartyNetworkDescriptor networkDescriptor;  
    void* asyncIdentifier;  
    PartyNetwork* network;  
}  
```

### Members

**`result`**   [PartyStateChangeResult](/services/playfab/multiplayer/networking/reference/enums/partystatechangeresult)

Indicates that the connect to network operation Succeeded or provides the reason that it failed.

**`errorDetail`**   PartyError

A diagnostic value providing additional troubleshooting information regarding any potential error condition.

The human-readable form of this error detail can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

**`networkDescriptor`**   [PartyNetworkDescriptor](/services/playfab/multiplayer/networking/reference/structs/partynetworkdescriptor)

The network descriptor provided to the call associated with this state change.

**`asyncIdentifier`**   void\*

The async identifier provided to the call associated with this state change.

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

The network that was connected to.

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)\
[PartyManager::ConnectToNetwork](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_connecttonetwork)


## Related topics

- [PartyManager::ConnectToNetwork](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_connecttonetwork.md)
- [PartyNetworkConfiguration](/services/playfab/multiplayer/networking/reference/structs/partynetworkconfiguration.md)
- [PartyStateChangeType](/services/playfab/multiplayer/networking/reference/enums/partystatechangetype.md)
- [Party C/C++ API overview](/services/playfab/multiplayer/networking/reference/party_members.md)
- [PartyConnectChatControlCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partyconnectchatcontrolcompletedstatechange.md)
