XblMultiplayerSessionSetCustomPropertyJson

Set a session custom property to the specified JSON string.

Syntax

HRESULT XblMultiplayerSessionSetCustomPropertyJson(  
         XblMultiplayerSessionHandle handle,  
         const char* name,  
         const char* valueJson  
)  

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.14x.GDK.C.lib

See also

multiplayer_c