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

# PFMatchmakingTicketStatus

> 枚举 PlayFab 多人游戏匹配票证的可能状态，包括创建中、等待玩家、已匹配、已取消和失败。

匹配票证可能的状态。

## 语法

```cpp theme={null}
enum class PFMatchmakingTicketStatus  : uint32_t  
{  
    Creating = 0,  
    Joining = 1,  
    WaitingForPlayers = 2,  
    WaitingForMatch = 3,  
    Matched = 4,  
    Canceled = 5,  
    Failed = 6,  
}  
```

## 常量

| 常量                | 描述                                                                                                                                                                                                                                      |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Creating          | 正在创建匹配票证。                                                                                                                                                                                                                               |
| Joining           | 正在加入匹配票证。                                                                                                                                                                                                                               |
| WaitingForPlayers | 匹配票证正在等待其配置的 `membersToMatchWith` 字段中指定的所有远程用户通过 [PFMultiplayerJoinMatchmakingTicketFromId](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid) 加入票证。 |
| WaitingForMatch   | 匹配票证正在等待找到匹配。                                                                                                                                                                                                                           |
| Matched           | 匹配票证已找到匹配。                                                                                                                                                                                                                              |
| Canceled          | 匹配票证已取消。                                                                                                                                                                                                                                |
| Failed            | 匹配票证未能找到匹配。                                                                                                                                                                                                                             |

## 要求

**头文件：** PFMatchmaking.h

## 另请参阅

[PFMatchmaking 成员](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members)


## Related topics

- [PFMatchmakingTicketGetStatus](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetstatus.md)
- [PFMatchmakingTicketGetTicketId](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetticketid.md)
- [PFMatchmakingTicketGetMatch](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetmatch.md)
- [PFMultiplayerJoinMatchmakingTicketFromId](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid.md)
- [Matchmaking SDK 快速入门](/zh-CN/services/playfab/multiplayer/matchmaking/quickstart-client-sdk.md)
