> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFMultiplayerDestroyMatchmakingTicket

> PlayFab Multiplayer マッチメイキング チケットを破棄して関連リソースを解放しますが、基盤となるマッチメイキング サービス要求はキャンセルしません。

マッチメイキング チケットを破棄します。

## 構文

```cpp theme={null}
HRESULT PFMultiplayerDestroyMatchmakingTicket(  
    PFMultiplayerHandle handle,  
    PFMatchmakingTicketHandle ticket  
)  
```

### パラメーター

**`handle`**   PFMultiplayerHandle

PFMultiplayer API インスタンスのハンドルです。

**`ticket`**   PFMatchmakingTicketHandle

破棄するチケットです。

### 戻り値

型: HRESULT

呼び出しが成功した場合は `S_OK`、それ以外の場合はエラー コード。エラー コードを人間が読める形式で取得するには、[PFMultiplayerGetErrorMessage()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage.md) を使用します。

## 解説

このメソッドは、マッチメイキング チケットを破棄し、それに関連付けられたローカル リソースを再利用します。チケットがまだ完了していない場合、バックグラウンド操作でマッチメイキング サービスからチケットをキャンセルするための 1 回限りのベスト エフォート試行が実行されます。

## 要件

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

## 関連項目

[PFMatchmaking のメンバー](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)


## Related topics

- [Matchmaking SDK quickstart](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/matchmaking/quickstart-client-sdk.md)
- [サーバー バックフィル チケットの使用 - Multiplayer SDK](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/matchmaking/backfill-tickets-multiplayer-sdk.md)
- [PFMultiplayer C/C++ API の概要 - PFMatchmaking.h](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)
- [PFMultiplayerCreateMatchmakingTicket](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayercreatematchmakingticket.md)
- [PFMultiplayerJoinMatchmakingTicketFromId](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid.md)
