> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblMultiplayerSessionCurrentUserSetCustomPropertyJson

> XblMultiplayerSessionCurrentUserSetCustomPropertyJson

# XblMultiplayerSessionCurrentUserSetCustomPropertyJson

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

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerSessionCurrentUserSetCustomPropertyJson(  
         XblMultiplayerSessionHandle handle,  
         const char* name,  
         const char* valueJson  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblMultiplayerSessionHandle](/reference/live/xsapi-c/multiplayer_c/handles/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](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [Using SmartMatch matchmaking](/services/xbox-services/multiplayer/matchmaking/concepts/live-matchmaking-how-tos.md)
- [XblMultiplayerSessionCurrentUserDeleteCustomPropertyJson](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessioncurrentuserdeletecustompropertyjson.md)
- [XblMultiplayerSessionDeleteCustomPropertyJson](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessiondeletecustompropertyjson.md)
- [XblMultiplayerSearchHandleGetCustomSessionPropertiesJson](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetcustomsessionpropertiesjson.md)
- [XblMultiplayerSessionCurrentUserSetEncounters](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessioncurrentusersetencounters.md)
