XStoreEnumerateProductsQuery
枚举产品查询的结果。语法
参数
productQueryHandle _In_类型:XStoreProductQueryHandle 要枚举结果的查询的句柄。XStoreProductQueryHandle 由 XStoreQueryProductForCurrentGameResult、XStoreQueryProductForPackageResult.md、XStoreQueryEntitledProductsResult、XStoreQueryAssociatedProductsAsync 和 XStoreQueryProductsResult 返回。 context _In_opt_
类型:void* 要传递给回调的、由游戏定义的上下文。 callback _In_
类型:XStoreProductQueryCallback* 将为每个产品调用的、由游戏定义的回调。
返回值
类型:HRESULT HRESULT 成功或错误代码。备注
此函数可在时间敏感线程上安全调用。 此函数用于枚举请求产品信息的函数所返回的产品。如有必要,一旦你调用了产品枚举,可使用 XStoreProductsQueryHasMorePages 函数来检查是否有更多产品信息。如果有更多产品信息要读取,则使用 XStoreProductsQueryNextPageAsync 来读取。有关用法示例,请参阅 XStoreQueryAssociatedProductsAsync。要求
头文件: XStore.h(包含于 XGameRuntime.h 中) 库: xgameruntime.lib 支持的平台: Windows、XBOX One 系列主机和 XBOX Series 主机概念文档
另请参阅
XStoreXStoreQueryAssociatedProductsAsync
XStoreQueryProductsResult
XStoreProductQueryCallback
