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

# PartyNetworkDestroyedStateChange

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

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

## Syntax

```cpp theme={null}
struct PartyNetworkDestroyedStateChange : PartyStateChange {  
    PartyDestroyedReason reason;  
    PartyError errorDetail;  
    PartyNetwork* network;  
}  
```

### Members

**`reason`**   [PartyDestroyedReason](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partydestroyedreason.md)

Indicates why the network was destroyed.

**`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).

**`network`**   [PartyNetwork](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/partynetwork.md)\*

The network that was destroyed.

## 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)
- [PartyLeaveNetworkCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partyleavenetworkcompletedstatechange.md)
- [PartyNetworkConfiguration](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partynetworkconfiguration.md)
- [PartyNetwork::CreateEndpoint](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint.md)
- [PartyManager::GetNetworks](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_getnetworks.md)
