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

### 傳回值

類型：void\*

先前與此使用者相關聯的指標大小值；否則為 null 指標。

<a id="remarksSection" />

## 備註

此方法會擷取應用程式先前與此 [chat\_user](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user) 物件相關聯的私人、自訂指標大小內容值。如果尚未為此 `chat_user` 物件設定自訂使用者內容，此方法會傳回 null 指標。

自訂使用者內容通常用來作為「捷徑」，可簡化存取與使用者相關聯的本機、應用程式特定記憶體，而不需要進行對應查閱。請使用 [chat\_user::set\_custom\_user\_context](/zh-TW/reference/chat/gamechat2/classes/chat_user/methods/chat_user_set_custom_user_context) 方法來設定 `chat_user` 物件的自訂使用者內容。

<a id="requirementsSection" />

## 需求

**標頭：** GameChat2.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[Game Chat 2 簡介](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[chat\_user](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user)


## Related topics

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