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

# PFMatchmakingTicketGetCustomContext

> Récupère la valeur de contexte personnalisée et privée de l'application, de la taille d'un pointeur, précédemment associée à un ticket de matchmaking PlayFab Multiplayer au moyen de la fonction de définition.

Récupère la valeur de contexte privée et personnalisée de l'application, de la taille d'un pointeur, précédemment associée à cet objet ticket.

## Syntaxe

```cpp theme={null}
HRESULT PFMatchmakingTicketGetCustomContext(  
    PFMatchmakingTicketHandle ticket,  
    void** customContext  
)  
```

### Paramètres

**`ticket`**   PFMatchmakingTicketHandle

Handle du ticket de matchmaking.

**`customContext`**   void\*\*\
*sortie, peut retourner nullptr*

Contexte personnalisé en sortie.

### Valeur de retour

Type : HRESULT

`S_OK` si la récupération du contexte personnalisé 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 au moyen de [PFMultiplayerGetErrorMessage()](/fr-CA/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage).

## Remarques

Si aucun contexte personnalisé n'a encore été défini, la valeur pointée par `customContext` est définie sur nullptr.

## Configuration requise

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

## Voir aussi

[Membres de PFMatchmaking](/fr-CA/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members)\
[PFMatchmakingTicketSetCustomContext](/fr-CA/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketsetcustomcontext)


## Related topics

- [PFMatchmakingTicketSetCustomContext](/fr-CA/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketsetcustomcontext.md)
- [Notes de version du SDK C++ PlayFab Multiplayer](/fr-CA/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/lobby-and-matchmaking-release-notes.md)
- [Vue d'ensemble de l'API C/C++ PFMultiplayer - PFMatchmaking.h](/fr-CA/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)
- [MatchmakingTicket.Context](/fr-CA/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/MatchmakingTicket/Context.md)
- [MatchmakingTicket](/fr-CA/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/MatchmakingTicket/overview.md)
