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
