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

# PFLobby 搜索键

> PlayFab Multiplayer C++ SDK 在通过匹配和大厅搜索 API 查询大厅时使用的预定义 PFLobby 搜索键参考。

表示大厅预定义搜索键的值。

## 语法

```cpp theme={null}
constexpr char PFLobbyMemberCountSearchKey[] = "lobby/memberCount";
constexpr char PFLobbyMemberCountRemainingSearchKey[] = "lobby/memberCountRemaining"
constexpr char PFLobbyAmMemberSearchKey[] = "lobby/amMember";
constexpr char PFLobbyAmOwnerSearchKey[] = "lobby/amOwner";
constexpr char PFLobbyMembershipLockSearchKey[] = "lobby/membershipLock";
constexpr char PFLobbyAmServerSearchKey[] = "lobby/amServer"
```

## 常量

| 常量                                   | 说明                                                                                                                                                                                            | 示例                                   |
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| PFLobbyMemberCountSearchKey          | 一个特殊的预定义搜索键,可在 [PFLobbySearchConfiguration](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysearchconfiguration) 的过滤和排序字符串中使用,以基于大厅当前成员数量搜索大厅。     | "lobby/memberCount lt 5"             |
| PFLobbyMemberCountRemainingSearchKey | 一个特殊的预定义搜索键,可在 [PFLobbySearchConfiguration](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysearchconfiguration) 的过滤和排序字符串中使用,以基于可加入大厅的剩余成员数量搜索大厅。 | "lobby/memberCountRemaining gt 0"    |
| PFLobbyAmMemberSearchKey             | 一个特殊的预定义搜索键,可在 [PFLobbySearchConfiguration](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysearchconfiguration) 的过滤字符串中使用,以搜索你当前是其成员的大厅。          | "lobby/amMember eq true"             |
| PFLobbyAmOwnerSearchKey              | 一个特殊的预定义搜索键,可在 [PFLobbySearchConfiguration](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysearchconfiguration) 的过滤字符串中使用,以搜索你拥有的大厅。              | "lobby/amOwner eq true"              |
| PFLobbyMembershipLockSearchKey       | 一个特殊的预定义搜索键,可在 [PFLobbySearchConfiguration](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysearchconfiguration) 的过滤字符串中使用,以搜索处于特定锁定状态的大厅。         | "lobby/membershipLock eq 'Unlocked'" |
| PFLobbyAmServerSearchKey             | 一个特殊的预定义搜索键,可在 [PFLobbySearchConfiguration](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysearchconfiguration) 的过滤字符串中使用,以搜索服务器已加入但不拥有的大厅。       | "lobby/amServer eq true"             |

## 要求

**头文件:** PFLobby.h

## 另请参阅

[PFLobbySearchConfiguration](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysearchconfiguration)


## Related topics

- [LobbyConstants.LobbyAmOwnerSearchKey](/zh-CN/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyConstants/LobbyAmOwnerSearchKey.md)
- [LobbyConstants.LobbyAmMemberSearchKey](/zh-CN/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyConstants/LobbyAmMemberSearchKey.md)
- [PFLobbySearchConfiguration](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysearchconfiguration.md)
- [Lobby.LobbyMemberCountSearchKey](/zh-CN/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyConstants/LobbyMemberCountSearchKey.md)
- [LobbyConstants 类](/zh-CN/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyConstants/overview.md)
