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

# 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](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle.md)

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.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[multiplayer\_c](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)


## Related topics

- [Using SmartMatch matchmaking](https://docs.xbox.com/services/xbox-services/multiplayer/matchmaking/concepts/live-matchmaking-how-tos.md)
- [multiplayer_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)
- [XblMultiplayerSessionCurrentUserDeleteCustomPropertyJson](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessioncurrentuserdeletecustompropertyjson.md)
- [XblMultiplayerSessionSetCustomPropertyJson](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetcustompropertyjson.md)
- [XblMultiplayerSessionCurrentUserSetQosMeasurements](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessioncurrentusersetqosmeasurements.md)
