XblProfileGetUserProfilesForSocialGroupAsync
获取指定社交组中用户的档案。
语法
HRESULT XblProfileGetUserProfilesForSocialGroupAsync(
XblContextHandle xboxLiveContext,
const char* socialGroup,
XAsyncBlock* async
)
参数
xboxLiveContext _In_
类型:XblContextHandle
使用 XblContextCreateHandle 创建的 xbox live 上下文句柄。
socialGroup _In_z_
类型:char*
要搜索的社交用户组的 UTF-8 编码名称。 选项为“收藏夹”和“人员”。
async _In_
类型:XAsyncBlock*
调用方分配的 AsyncBlock。
返回值
类型:HRESULT
此 API 操作的 HRESULT 返回代码。
备注
要获得结果,首先调用 XblProfileGetUserProfilesForSocialGroupResultCount 以获取返回的档案的计数,然后在 AsyncBlock 回调内或 AsyncBlock 完成后调用 XblProfileGetUserProfilesForSocialGroupResult。
REST 调用
调用 V2 GET /users/{userId}/profile/settings/people/{socialGroup}
要求
头文件:profile_c.h
图书馆: Microsoft.Xbox.Services.14x.GDK.C.lib