XblMultiplayerGetSessionAsync
从服务器获取现有会话对象及其所有属性。
语法
HRESULT XblMultiplayerGetSessionAsync(
XblContextHandle xblContext,
const XblMultiplayerSessionReference* sessionReference,
XAsyncBlock* async
)
参数
xblContext _In_
类型:XblContextHandle
本地用户的 Xbox Live 上下文。
sessionReference _In_
类型:XblMultiplayerSessionReference*
包含会话的标识信息的 XblMultiplayerSessionReference 对象。
async _In_
类型:XAsyncBlock*
此操作的 AsyncBlock。
返回值
类型:HRESULT
此 API 操作的 HRESULT 返回代码。
REST 调用
调用 V102 GET /serviceconfigs/{serviceConfigurationId}/sessionTemplates/{sessiontemplateName}/sessions/{sessionName}
要求
头文件:multiplayer_c.h
图书馆: Microsoft.Xbox.Services.14x.GDK.C.lib