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

> セッター関数を介して PlayFab Multiplayer マッチメイキング チケットに以前関連付けられた、アプリのプライベートなポインター サイズのカスタム コンテキスト値を取得します。

このチケット オブジェクトに以前関連付けられた、アプリのプライベートなカスタム ポインター サイズのコンテキスト値を取得します。

## 構文

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

### パラメーター

**`ticket`**   PFMatchmakingTicketHandle

マッチメイキング チケットのハンドルです。

**`customContext`**   void\*\*\
*出力、nullptr を返す場合があります*

出力のカスタム コンテキストです。

### 戻り値

型: HRESULT

カスタム コンテキストの取得が成功した場合は `S_OK`、それ以外の場合はエラー コード。エラー コードを人間が読める形式で取得するには、[PFMultiplayerGetErrorMessage()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage) を使用します。

## 解説

カスタム コンテキストがまだ設定されていない場合、`customContext` が指す値は nullptr に設定されます。

## 要件

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

## 関連項目

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


## Related topics

- [PFMatchmakingTicketSetCustomContext](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketsetcustomcontext.md)
- [PlayFab Multiplayer C++ SDK リリース ノート](/ja-jp/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/lobby-and-matchmaking-release-notes.md)
- [PFMultiplayer C/C++ API overview - PFMatchmaking.h](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)
- [XblMatchmakingGetMatchTicketDetailsAsync](/ja-jp/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakinggetmatchticketdetailsasync.md)
- [PFMatchmakingTicketGetTicketId](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetticketid.md)
