Edit

Share via


MultiplayerSession.SetMatchmakingServerConnectionPath(String) Method

Definition

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

Microsoft.Xbox.Services.Multiplayer.__IMultiplayerSessionPublicNonVirtuals.SetMatchmakingServerConnectionPath(System.String)

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.

Applies to