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

# PFLobbyInviteReceivedStateChange

> PlayFab Multiplayer InviteReceived 狀態變更的詳細資料，在接聽實體收到加入大廳的傳入邀請時傳遞。

*InviteReceived* 類型狀態變更的特定資訊。

## 語法

```cpp theme={null}
struct PFLobbyInviteReceivedStateChange : PFLobbyStateChange {  
    PFEntityKey listeningEntity;  
    PFEntityKey invitingEntity;  
    const char* connectionString;  
    const char* lobbyId;  
}  
```

### 成員

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

正在接聽邀請且已受邀的實體。

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

邀請 `listeningEntity` 加入大廳的實體。

**`connectionString`**   const char\*\
*以 null 結尾*

`listeningEntity` 受邀加入之大廳的連接字串。

**`lobbyId`**   const char\*\
*以 null 結尾*

`listeningEntity` 受邀加入之大廳的識別碼。

## 需求

**標頭：** PFLobby.h

## 另請參閱

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


## Related topics

- [PlayFab Multiplayer C++ SDK 版本資訊](/zh-TW/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/lobby-and-matchmaking-release-notes.md)
- [大廳邀請](/zh-TW/services/playfab/multiplayer/lobby/lobby-invites.md)
- [PFMultiplayerStartListeningForLobbyInvites](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartlisteningforlobbyinvites.md)
- [PFLobbyStateChangeType](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbystatechangetype.md)
- [PFLobbySendInviteCompletedStateChange](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysendinvitecompletedstatechange.md)
