> ## 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::local function

> chat_user::local function

# chat\_user::local function

ユーザーがローカルの場合、このユーザーに関連付けられた [chat\_user\_local](/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local) オブジェクトへのポインターを返します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
chat_user_local* local(  
)  
```

<a id="parametersSection" />

### パラメーター

なし。

<a id="retvalSection" />

### 戻り値

Type: [chat\_user\_local](/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local)\*

ユーザーがローカルの場合、このユーザーに関連付けられた [chat\_user\_local](/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local) オブジェクトへのポインターを返します。それ以外の場合は `NULL` を返します。

<a id="remarksSection" />

## 解説

このメソッドは、ユーザーがローカルの場合に、この [chat\_user](/reference/chat/gamechat2/classes/chat_user/chat_user) オブジェクトに関連付けられた [chat\_user\_local](/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local) オブジェクトへのポインターを返します。返されるポインターは、関連付けられた `chat_user` オブジェクトの有効期間中、つまり [chat\_manager::remove\_user](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_remove_user) メソッドの呼び出しによってユーザーが削除されるまで有効です。アプリのローカル [chat\_manager](/reference/chat/gamechat2/classes/chat_manager/chat_manager) インスタンスへのローカルおよびリモート ユーザーの追加の詳細については、「[Game Chat 2 C++ API の使用](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2)」の「[Game Chat 2 へのユーザーの追加](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2#adding_users_to_game_chat_2)」セクションを参照してください。

<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::local](/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function-overloads)\
[chat\_user](/reference/chat/gamechat2/classes/chat_user/chat_user)


## Related topics

- [chat_user::local function - overloads](/ja-jp/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function-overloads.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)
- [chat_user_local::microphone_muted](/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_microphone_muted.md)
- [chat_user_local::send_chat_text](/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_send_chat_text.md)
