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

# PFLobbyJoinLobbyCompletedStateChange

> JoinLobbyCompleted PlayFab 多人游戏状态变更详细信息，在客户端用户通过连接字符串完成加入大厅时发送。

*JoinLobbyCompleted* 类型状态变更的特定信息。

## 语法

```cpp theme={null}
struct PFLobbyJoinLobbyCompletedStateChange : PFLobbyStateChange {  
    HRESULT result;  
    PFEntityKey newMember;  
    void* asyncContext;  
    PFLobbyHandle lobby;  
}  
```

### 成员

**`result`**   HRESULT

指示 JoinLobby 操作的结果。

可以通过 [PFMultiplayerGetErrorMessage()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage) 获取此结果的人类可读形式。

**`newMember`**   [PFEntityKey](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk)

提供给与此状态变更相关联的调用的、加入大厅的实体。

**`asyncContext`**   void\*

提供给与此状态变更相关联的调用的异步上下文。

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

已加入的大厅。

## 要求

**头文件：** PFLobby.h

## 另请参阅

[PFLobby 成员](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)


## Related topics

- [PFMultiplayerJoinLobby](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerjoinlobby.md)
- [PFLobbyGetLobbyId](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetlobbyid.md)
- [PFLobbyGetConnectionString](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetconnectionstring.md)
- [PFLobbyGetOwner](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetowner.md)
- [PFLobbyGetOwnerMigrationPolicy](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetownermigrationpolicy.md)
