XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson

设置匹配的属性。 这应该只由作为匹配服务的客户端来设置。

语法

HRESULT XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson(  
         XblMultiplayerSessionHandle handle,  
         const char* matchmakingTargetSessionConstantsJson  
)  

参数

handle _In_
类型:XblMultiplayerSessionHandle

多人游戏会话的句柄。

matchmakingTargetSessionConstantsJson _In_
类型:char*

表示目标会话常量的 JSON 字符串。

返回值

类型:HRESULT

此 API 操作的 HRESULT 返回代码。

要求

头文件:multiplayer_c.h

库:Microsoft.Xbox.Services.141.GSDK.C.lib

另请参阅

multiplayer_c