> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# local const

> chat_user::local

# chat\_user::local

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

## 構文

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

### パラメーター

なし。

### 戻り値

Type: const [chat\_user\_local](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local.md)\*

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

## 解説

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

## 要件

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

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

## 関連項目

[Game Chat 2 の概要](https://docs.xbox.com/ja-jp/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)\
[chat\_user::local](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function-overloads.md)\
[chat\_user](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user.md)


## Related topics

- [local 関数 - オーバーロード](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function-overloads.md)
- [local](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function.md)
- [PFLocalizationGetLanguageListResponse](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pflocalizationtypes/structs/pflocalizationgetlanguagelistresponse.md)
- [PFLocalizationGetLanguageListRequest](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pflocalizationtypes/structs/pflocalizationgetlanguagelistrequest.md)
- [XAppCaptureCancelUserRecord](https://docs.xbox.com/ja-jp/reference/system/xappcapture/functions/xappcapturecanceluserrecord.md)
