XStoreQueryPackageUpdatesResultCount

获取 XStoreQueryPackageUpdatesAsync 检索的更新数。

语法

HRESULT XStoreQueryPackageUpdatesResultCount(  
         XAsyncBlock* async,  
         uint32_t* count  
)  

参数

async _In_
类型:XAsyncBlock*

传递给 XStoreQueryPackageUpdatesAsync 的 XAsyncBlock。 XAsyncBlock 可用于轮询调用的状态和检索调用结果。 有关详细信息,请参阅 XAsyncBlock

count _Out_
类型:uint32_t*

成功时包含检索的更新数。

返回值

类型:HRESULT

HRESULT 成功或错误代码。

备注

可使用此结果函数来检索调用 XStoreQueryPackageUpdatesAsync 时获取的加载项许可证的数量。 因此,应在调用 XStoreQueryPackageUpdatesAsync 之后调用此函数,并且通常是在回调函数的上下文中。

有关用法示例,请参阅 XStoreQueryPackageUpdatesAsync

要求

头文件:XStore.h(包含在 XGameRuntime.h 中)

库:xgameruntime.lib

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

XStore
XStoreQueryPackageUpdatesAsync
XStoreQueryPackageUpdatesResult