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

> Détruit un ticket de matchmaking PlayFab Multiplayer et libère les ressources associées, sans annuler la demande sous-jacente auprès du service de matchmaking.

Détruit le ticket de matchmaking.

## Syntaxe

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

### Paramètres

**`handle`**   PFMultiplayerHandle

Handle de l'instance de l'API PFMultiplayer.

**`ticket`**   PFMatchmakingTicketHandle

Ticket à détruire.

### Valeur renvoyée

Type : HRESULT

`S_OK` si l'appel a réussi, ou un code d'erreur dans le cas contraire. La forme lisible du code d'erreur peut être récupérée via [PFMultiplayerGetErrorMessage()](https://docs.xbox.com/fr/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage.md).

## Remarques

Cette méthode détruit le ticket de matchmaking et récupère les ressources locales qui lui sont associées. Si le ticket n'est pas encore terminé, une opération en arrière-plan effectue une seule tentative, au mieux, pour annuler le ticket auprès du service de matchmaking.

## Configuration requise

**En-tête :** PFMatchmaking.h

## Voir aussi

[Membres de PFMatchmaking](https://docs.xbox.com/fr/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)


## Related topics

- [Utilisation des tickets de backfill de serveur - SDK Multiplayer](https://docs.xbox.com/fr/services/playfab/multiplayer/matchmaking/backfill-tickets-multiplayer-sdk.md)
- [Démarrage rapide du SDK Matchmaking](https://docs.xbox.com/fr/services/playfab/multiplayer/matchmaking/quickstart-client-sdk.md)
- [Vue d'ensemble de l'API C/C++ PFMultiplayer - PFMatchmaking.h](https://docs.xbox.com/fr/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)
- [PFMultiplayerCreateMatchmakingTicket](https://docs.xbox.com/fr/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayercreatematchmakingticket.md)
- [PFMultiplayerJoinMatchmakingTicketFromId](https://docs.xbox.com/fr/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid.md)
