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

# chat_user::custom_user_context

> chat_user::custom_user_context

# chat\_user::custom\_user\_context

以前このユーザーに関連付けられたアプリのオプションのプライベートなカスタム ポインター サイズのコンテキスト値を取得します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
void* custom_user_context(  
)  
```

<a id="parametersSection" />

### パラメーター

なし。

<a id="retvalSection" />

### 戻り値

Type: void\*

以前このユーザーに関連付けられたポインター サイズの値。それ以外の場合は null ポインター。

<a id="remarksSection" />

## 解説

このメソッドは、以前この [chat\_user](/reference/chat/gamechat2/classes/chat_user/chat_user) オブジェクトに関連付けられたアプリのプライベートなカスタム ポインター サイズのコンテキスト値を取得します。この `chat_user` オブジェクトに対してカスタム ユーザー コンテキストがまだ設定されていない場合、このメソッドは null ポインターを返します。

カスタム ユーザー コンテキストは通常、マッピング参照を必要とせずに、ユーザーに関連付けられたローカルのアプリ固有のメモリへのアクセスを簡素化する「ショートカット」として使用されます。`chat_user` オブジェクトに対してカスタム ユーザー コンテキストを設定するには、[chat\_user::set\_custom\_user\_context](/reference/chat/gamechat2/classes/chat_user/methods/chat_user_set_custom_user_context) メソッドを使用します。

<a id="requirementsSection" />

## 要件

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

**サポートされているプラットフォーム:** Windows、XBOX One ファミリ本体および XBOX Series 本体

<a id="seealsoSection" />

## 関連項目

[Game Chat 2 の概要](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[chat\_user](/reference/chat/gamechat2/classes/chat_user/chat_user)


## Related topics

- [chat_user::set_custom_user_context](/ja-jp/reference/chat/gamechat2/classes/chat_user/methods/chat_user_set_custom_user_context.md)
- [chat_user::xbox_user_id](/ja-jp/reference/chat/gamechat2/classes/chat_user/methods/chat_user_xbox_user_id.md)
- [chat_user::chat_indicator](/ja-jp/reference/chat/gamechat2/classes/chat_user/methods/chat_user_chat_indicator.md)
- [chat_user::local](/ja-jp/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function_2.md)
- [chat_user_local::remote_user_muted](/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_remote_user_muted.md)
