MultiplayerSession.SetMatchmakingServerConnectionPath(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Forces a specific server connection string to be used. This is useful in preserveSession=always cases.
public void SetMatchmakingServerConnectionPath (string serverConnectionPath);
abstract member SetMatchmakingServerConnectionPath : string -> unit
override this.SetMatchmakingServerConnectionPath : string -> unit
Public Sub SetMatchmakingServerConnectionPath (serverConnectionPath As String)
Parameters
- serverConnectionPath
- String
The server connection path. Setting this path can be useful when the session is preserved.
Implements
Remarks
After calling SetMatchmakingServerConnectionPath, the system or title must call MultiplayerService.WriteSessionAsync to write batched local changes to the service. If SetMatchmakingServerConnectionPath is called without calling WriteSessionAsync, it only changes the local session object but does not commit it to the service.