Skip to main content

XblMultiplayerSessionCurrentUserSetCustomPropertyJson

Set a custom property on the current user to the specified JSON string. The member must first be joined to the session.

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. (Optional)

Return value

Type: HRESULT HRESULT return code for this API operation.

Requirements

Header: multiplayer_c.h Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

multiplayer_c
Last modified on August 4, 2026