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

# XblMultiplayerSessionSetMatchmakingServerConnectionPath

> XblMultiplayerSessionSetMatchmakingServerConnectionPath

# XblMultiplayerSessionSetMatchmakingServerConnectionPath

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

## 構文

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

### パラメーター

*handle*   \_In\_\
型: [XblMultiplayerSessionHandle](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle.md)

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

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

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

### 戻り値

型: void

## 要件

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

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

## 関連項目

[multiplayer\_c](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)


## Related topics

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