> ## 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.

# XblMultiplayerSearchHandleGetCustomSessionPropertiesJson

> XblMultiplayerSearchHandleGetCustomSessionPropertiesJson

# XblMultiplayerSearchHandleGetCustomSessionPropertiesJson

获取关联会话的自定义会话属性。

## 语法

```cpp theme={null}
HRESULT XblMultiplayerSearchHandleGetCustomSessionPropertiesJson(  
         XblMultiplayerSearchHandle handle,  
         const char** customPropertiesJson  
)  
```

### 参数

*handle*   \_In\_\
类型：[XblMultiplayerSearchHandle](/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersearchhandle)

指向搜索句柄详细信息的句柄。

*customPropertiesJson*   \_Out\_\
类型：char\*\*

回传自定义属性 JSON 字符串。返回指针所指向的内存在 XblMultiplayerSessionHandle 对象关闭之前的整个生命周期内均有效。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 要求

**头文件：** multiplayer\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [从 MPSD 迁移到 PlayFab Multiplayer 和 MPA](/zh-CN/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [XblMultiplayerSessionDeleteCustomPropertyJson](/zh-CN/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessiondeletecustompropertyjson.md)
- [XblMultiplayerSessionCurrentUserSetCustomPropertyJson](/zh-CN/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessioncurrentusersetcustompropertyjson.md)
- [XblMultiplayerSessionCurrentUserDeleteCustomPropertyJson](/zh-CN/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessioncurrentuserdeletecustompropertyjson.md)
- [XblMultiplayerSearchHandleGetSessionClosed](/zh-CN/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetsessionclosed.md)
