Skip to main content
Set a session custom property to the specified JSON string.

Syntax

Parameters

handle   _In_
Type: XblMultiplayerSessionHandle
Handle to the multiplayer session. name   _In_z_
Type: char*
The name of the property to set. valueJson   _In_z_
Type: char*
The JSON value to assign to the property. This must be a valid JSON string. Examples include "\"JsonString\"", "{\"name\":\"A\"}", or "true".

Return value

Type: HRESULT HRESULT return code for this API operation.

Requirements

Header: multiplayer_c.h Library: Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

See also

multiplayer_c
Last modified on October 29, 2026