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

# 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](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/partynetwork)\*

The network of the invitation that was destroyed.

**`invitation`**   [PartyInvitation](/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/partyinvitation)\*

The invitation that was destroyed.

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

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

The reason the invitation was destroyed.

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

**`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::RevokeInvitation](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_revokeinvitation.md)
- [PartyNetwork::CreateInvitation](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createinvitation.md)
- [PartyNetwork::GetInvitations](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getinvitations.md)
- [Party C/C++ API overview](/services/playfab/multiplayer/networking/reference/party_members.md)
- [PartyStateChangeType](/services/playfab/multiplayer/networking/reference/enums/partystatechangetype.md)
