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

# XblMultiplayerSessionSetClosed

> XblMultiplayerSessionSetClosed

# XblMultiplayerSessionSetClosed

true に設定すると、セッションが “closed” になり、既に予約を持っていない新規ユーザーは参加できなくなります。

## 構文

```cpp theme={null}
void XblMultiplayerSessionSetClosed(  
         XblMultiplayerSessionHandle handle,  
         bool closed  
)  
```

### パラメーター

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

マルチプレイヤー セッションへのハンドル。

*closed*   \_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

- [XblMultiplayerSessionSetLocked](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetlocked.md)
- [XblMultiplayerSearchHandleGetSessionClosed](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetsessionclosed.md)
- [XblMultiplayerSessionSetSessionChangeSubscription](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetsessionchangesubscription.md)
- [XblMultiplayerSessionConstantsSetMaxMembersInSession](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetmaxmembersinsession.md)
- [XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetmatchmakingtargetsessionconstantsjson.md)
