Edit

Share via


MultiplayerSession.SetMatchmakingTargetSessionConstantsJson(String) Method

Definition

Sets matchmaking constants for the session.

public void SetMatchmakingTargetSessionConstantsJson (string matchmakingTargetSessionConstants);
abstract member SetMatchmakingTargetSessionConstantsJson : string -> unit
override this.SetMatchmakingTargetSessionConstantsJson : string -> unit
Public Sub SetMatchmakingTargetSessionConstantsJson (matchmakingTargetSessionConstants As String)

Parameters

matchmakingTargetSessionConstants
String

A JSON string representing the target session constants

Implements

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

Remarks

This method is optional. Only a client acting as a matchmaking service should call it. Its use requires the MultiplayerSessionCapabilities.ClientMatchmaking Property to be set.

After calling this method, the caller must use MultiplayerService.WriteSessionAsync to write batched local changes to the service.If SetHostDeviceToken is called without calling WriteSessionAsync, it only changes the local session object but does not commit it to the service.

Applies to