> ## 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 Multiplayer 状態変更の詳細です。

*TicketCompleted* 型の状態変更に固有の情報です。

## 構文

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

### メンバー

**`result`**   HRESULT

チケットが成功したかどうか、失敗した場合はその理由を示すエラー コードです。

**`ticket`**   PFMatchmakingTicketHandle\
*null であってはなりません*

完了したマッチメイキング チケットです。

**`asyncContext`**   void\*

この状態変更に関連付けられた呼び出しに指定された非同期コンテキストです。

## 要件

**ヘッダー:** PFMatchmaking.h

## 関連項目

[PFMatchmaking のメンバー](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members)


## Related topics

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