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

# PartyCreateNewNetworkCompletedStateChange

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

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

## Syntax

```cpp theme={null}
struct PartyCreateNewNetworkCompletedStateChange : PartyStateChange {  
    PartyStateChangeResult result;  
    PartyError errorDetail;  
    PartyLocalUser* localUser;  
    PartyNetworkConfiguration networkConfiguration;  
    uint32_t regionCount;  
    const PartyRegion* regions;  
    void* asyncIdentifier;  
    PartyNetworkDescriptor networkDescriptor;  
    PartyString appliedInitialInvitationIdentifier;  
}  
```

### Members

**`result`**   [PartyStateChangeResult](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partystatechangeresult.md)

Indicates that the create new 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()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md).

**`localUser`**   [PartyLocalUser](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/partylocaluser.md)\*

The local user provided to the call associated with this state change.

**`networkConfiguration`**   [PartyNetworkConfiguration](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partynetworkconfiguration.md)

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

**`regionCount`**   uint32\_t

The number of regions provided to the call associated with this state change.

**`regions`**   const [PartyRegion](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partyregion.md)\*

The regions provided to the call associated with this state change.

**`asyncIdentifier`**   void\*

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

**`networkDescriptor`**   [PartyNetworkDescriptor](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partynetworkdescriptor.md)

The network descriptor of the network that was created.

The regionName and opaqueConnectionInformation fields are only populated if the result field is [PartyStateChangeResult::Succeeded](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partystatechangeresult.md). The networkIdentifier field should always be populated. If the result field is PartyStateChangeResult::Succeeded, this network descriptor is serializable via [PartyManager::SerializeNetworkDescriptor()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_serializenetworkdescriptor.md).

**`appliedInitialInvitationIdentifier`**   [PartyString](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/typedefs.md)

The identifier for the network's initial invitation.

## Requirements

**Header:** Party.h

## See also

[Party members](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/party_members.md)\
[PartyManager::CreateNewNetwork](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_createnewnetwork.md)\
[PartyManager::SerializeNetworkDescriptor](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_serializenetworkdescriptor.md)


## Related topics

- [PartyManager::CreateNewNetwork](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_createnewnetwork.md)
- [PartyRegionUpdateMode](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partyregionupdatemode.md)
- [PartyNetwork::GetNetworkDescriptor](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkdescriptor.md)
- [PlayFab Party invitations and the security model](https://docs.xbox.com/services/playfab/multiplayer/networking/concepts-invitations-security-model.md)
- [PartyManager::SerializeNetworkDescriptor](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_serializenetworkdescriptor.md)
