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

# PFMatchmakingTicketCompletedStateChange

> TicketCompleted PlayFab 多人游戏状态变更详细信息，在匹配票证通过匹配、取消或失败方式完成时引发。

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

## 语法

```cpp theme={null}
struct PFMatchmakingTicketCompletedStateChange : PFMatchmakingStateChange {  
    HRESULT result;  
    PFMatchmakingTicketHandle ticket;  
    void* asyncContext;  
}  
```

### 成员

**`result`**   HRESULT

指示票证是否成功的错误代码；如果失败，则指示失败原因。

**`ticket`**   PFMatchmakingTicketHandle\
*must not be null*

已完成的匹配票证。

**`asyncContext`**   void\*

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

## 要求

**头文件：** PFMatchmaking.h

## 另请参阅

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


## Related topics

- [PFMatchmakingStateChangeType](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/enums/pfmatchmakingstatechangetype.md)
- [PFMatchmakingTicketCancel](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketcancel.md)
- [PFMultiplayer C/C++ API 概述 - PFMatchmaking.h](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)
- [PFMatchmakingTicketStatusChangedStateChange](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingticketstatuschangedstatechange.md)
- [ticket_completed](/zh-CN/services/playfab/api-references/events/Matchmaking/ticket-completed.md)
