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

# PartyEndpointDestroyedStateChange

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

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

## Syntax

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

### Members

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

The network of the endpoint that was destroyed.

**`endpoint`**   [PartyEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/partyendpoint)\*

The endpoint that was destroyed.

**`reason`**   [PartyDestroyedReason](/services/playfab/multiplayer/networking/reference/enums/partydestroyedreason)

The reason the endpoint 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()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)


## Related topics

- [PartyNetwork::DestroyEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_destroyendpoint.md)
- [PartyDestroyEndpointCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partydestroyendpointcompletedstatechange.md)
- [PartyNetwork::CreateEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint.md)
- [PartyRemoveLocalUserCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partyremovelocalusercompletedstatechange.md)
- [PartyNetwork::GetEndpoints](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getendpoints.md)
