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

# XblMultiplayerSessionSetMatchmakingServerConnectionPath

> XblMultiplayerSessionSetMatchmakingServerConnectionPath

# XblMultiplayerSessionSetMatchmakingServerConnectionPath

特定のサーバー接続文字列を強制的に使用させます。preserveSession=always のケースで役立ちます。

## 構文

```cpp theme={null}
void XblMultiplayerSessionSetMatchmakingServerConnectionPath(  
         XblMultiplayerSessionHandle handle,  
         const char* serverConnectionPath  
)  
```

### パラメーター

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

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

*serverConnectionPath*   \_In\_z\_\
型: char\*

サーバー接続パス。このパスを設定すると、セッションが保持されている場合に役立ちます。

### 戻り値

型: void

## 要件

**ヘッダー:** multiplayer\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

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


## Related topics

- [XblMultiplayerSessionSetServerConnectionStringCandidates](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetserverconnectionstringcandidates.md)
- [XblMultiplayerSessionMatchmakingServer](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionmatchmakingserver.md)
- [XblMultiplayerSessionSetMatchmakingResubmit](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetmatchmakingresubmit.md)
- [XblMultiplayerManagerLobbySessionSetLocalMemberConnectionAddress](/ja-jp/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionsetlocalmemberconnectionaddress.md)
- [XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetmatchmakingtargetsessionconstantsjson.md)
