MultiplayerSession.SetSessionCustomPropertyJson(String, 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.
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
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.