MultiplayerSession.SetMatchmakingTargetSessionConstantsJson(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.
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
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.