Edit

Share via


MultiplayerSession.SetSessionCustomPropertyJson(String, String) Method

Definition

Set a session custom property to the specified JSON string.

public void SetSessionCustomPropertyJson (string name, string valueJson);
abstract member SetSessionCustomPropertyJson : string * string -> unit
override this.SetSessionCustomPropertyJson : string * string -> unit
Public Sub SetSessionCustomPropertyJson (name As String, valueJson As String)

Parameters

name
String

The name of the property to set.

valueJson
String

(Optional) The JSON string value to assign to the property.

Implements

Microsoft.Xbox.Services.Multiplayer.__IMultiplayerSessionPublicNonVirtuals.SetSessionCustomPropertyJson(System.String,System.String)

Remarks

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