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

> chat_user::local

# chat\_user::local

사용자가 로컬인 경우 이 사용자와 연결된 [chat\_user\_local](/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local) 개체에 대한 `const` 포인터를 반환합니다.

<a id="syntaxSection" />

## 구문

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

<a id="parametersSection" />

### 매개 변수

없음.

<a id="retvalSection" />

### 반환 값

형식: const [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) 개체에 대한 `const` 포인터를 반환합니다. 그렇지 않으면 `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) 개체에 대한 `const` 포인터를 반환합니다. 반환된 `const` 포인터는 연결된 `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](/ko/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function.md)
- [chat_user::local function - overloads](/ko/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function-overloads.md)
- [chat_user_local::remote_user_muted](/ko/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_remote_user_muted.md)
- [chat_user_local::microphone_muted](/ko/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_microphone_muted.md)
- [chat_user_local::send_chat_text](/ko/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_send_chat_text.md)
