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

# PFLobbyServerLeaveLobbyAsServerCompletedStateChange

> Details of the ServerLeaveLobbyAsServerCompleted PlayFab Multiplayer state change, raised when a game server finishes leaving a client-owned lobby.

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

## Syntax

```cpp theme={null}
struct PFLobbyServerLeaveLobbyAsServerCompletedStateChange : PFLobbyStateChange {  
    PFLobbyHandle lobby;  
    void* asyncContext;  
}  
```

### Members

**`lobby`**   PFLobbyHandle\
*must not be null*

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

**`asyncContext`**   void\*

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

## Requirements

**Header:** PFLobby.h

## See also

[PFLobby members](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)


## Related topics

- [PFLobbyServerLeaveAsServer](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbyserverleaveasserver.md)
- [PFMultiplayer C/C++ API overview - PFLobby.h](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFLobbyStateChangeType](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbystatechangetype.md)
- [PFLobbyLeaveLobbyCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyleavelobbycompletedstatechange.md)
- [PFLobbyClaimServerLobbyCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyclaimserverlobbycompletedstatechange.md)
