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

# PartyInvitationDestroyedStateChange

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

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

## Syntax

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

### Members

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

The network of the invitation that was destroyed.

**`invitation`**   [PartyInvitation](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/partyinvitation.md)\*

The invitation that was destroyed.

Upon receiving this state change, the invitation object will no longer be queryable via [PartyNetwork::GetInvitations()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getinvitations.md).

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

The reason the invitation was destroyed.

If the invitation object was destroyed because it was explicitly revoked via [PartyNetwork::RevokeInvitation()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_revokeinvitation.md) or automatically revoked when the creating local user left the network, this value will be [PartyDestroyedReason::Requested](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partydestroyedreason.md). If the invitation object was destroyed because the local client is no longer authenticated in the network, this value will be [PartyDestroyedReason::DeviceLostAuthentication](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partydestroyedreason.md).

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

## Requirements

**Header:** Party.h

## See also

[Party members](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/party_members.md)


## Related topics

- [PartyNetwork::RevokeInvitation](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_revokeinvitation.md)
- [PartyNetwork::CreateInvitation](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createinvitation.md)
- [PartyNetwork::GetInvitations](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getinvitations.md)
- [Party C/C++ API overview](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/party_members.md)
- [PartyStateChangeType](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partystatechangetype.md)
