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

# XblMultiplayerSessionSetLocked

> XblMultiplayerSessionSetLocked

# XblMultiplayerSessionSetLocked

세션의 잠금 여부를 설정합니다. 잠긴 경우 세션을 나간 멤버가 다시 세션으로 돌아올 수 있으며, 추가 사용자가 그 자리를 대신 차지할 수 없습니다.

## 구문

```cpp theme={null}
void XblMultiplayerSessionSetLocked(  
         XblMultiplayerSessionHandle handle,  
         bool locked  
)  
```

### 매개 변수

*handle*   \_In\_\
형식: [XblMultiplayerSessionHandle](/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle)

멀티플레이어 세션에 대한 핸들입니다.

*locked*   \_In\_\
형식: bool

세션을 잠가야 하면 true, 그렇지 않으면 false로 설정합니다.

### 반환값

형식: void

## 설명

세션이 잠긴 경우 닫힘으로도 설정되어야 합니다.

## 요구 사항

**헤더:** multiplayer\_c.h

**라이브러리:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 함께 보기

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [XblMultiplayerSessionSetSessionChangeSubscription](/ko/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetsessionchangesubscription.md)
- [XblMultiplayerSessionSetClosed](/ko/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetclosed.md)
- [XblMultiplayerSessionConstantsSetMaxMembersInSession](/ko/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetmaxmembersinsession.md)
- [XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson](/ko/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetmatchmakingtargetsessionconstantsjson.md)
- [XblMultiplayerSessionSetInitializationSucceeded](/ko/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetinitializationsucceeded.md)
