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

# PartyXblChatUser::GetCustomContext

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

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

## 構文

```cpp theme={null}
PartyError GetCustomContext(  
    void** customContext  
)  
```

### パラメーター

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

出力されるカスタムコンテキスト。

### 戻り値

PartyError

`c_partyErrorSuccess` はカスタムコンテキストの取得に成功した場合、それ以外の場合はエラーコード。エラーコードの人間が読める形式は [PartyXblManager::GetErrorMessage()](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_geterrormessage) 経由で取得できます。

## 備考

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

## 要件

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

## 参照

[PartyXblChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser)\
[PartyXblChatUser::SetCustomContext](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_setcustomcontext)
