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

# PFLobbyMemberAddedStateChange

> Details of the MemberAdded PlayFab Multiplayer state change, raised when a new member has been added to the lobby by a remote or local client.

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

## Syntax

```cpp theme={null}
struct PFLobbyMemberAddedStateChange : PFLobbyStateChange {  
    PFLobbyHandle lobby;  
    PFEntityKey member;  
}  
```

### Members

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

The lobby the new member was added to.

**`member`**   [PFEntityKey](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk.md)

The PlayFab entity which is now a member of the lobby.

## Remarks

This state change will be generated by all operations which add members to lobbies such as [PFMultiplayerCreateAndJoinLobby](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayercreateandjoinlobby.md), [PFMultiplayerJoinLobby](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerjoinlobby.md), and [PFLobbyAddMember](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbyaddmember.md). \
\
&#x20;When this state change is provided by [PFMultiplayerStartProcessingLobbyStateChanges](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges.md) the lobby will update to reflect the new member in the member list and the member's initial properties will become queryable.

## Requirements

**Header:** PFLobby.h

## See also

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


## Related topics

- [PFLobbyAddMember](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbyaddmember.md)
- [PFMultiplayerConnectToLobby](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerconnecttolobby.md)
- [PFMultiplayerJoinLobby](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerjoinlobby.md)
- [PFMultiplayerCreateAndJoinLobby](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayercreateandjoinlobby.md)
- [PFMultiplayerJoinArrangedLobby](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerjoinarrangedlobby.md)
