XStoreProductsQueryHasMorePages
檢查指定的查詢是否還有更多結果頁面。 對於XStoreQuery API 而言,呼叫此函式是不可或缺的,尤其是預期會傳回多個結果的 API,例如 XStoreQueryAssociatedProductsAsync。
語法
參數
productQueryHandle _In_類型:XStoreProductQueryHandle 要檢查是否有更多頁面之查詢的控制代碼。第一次呼叫 XStoreProductsQueryHasMorePages 時,這會是 XStoreQueryProductForCurrentGameResult、XStoreQueryProductForPackageResult、XStoreQueryEntitledProductsResult 或 XStoreQueryProductsResult 所傳回的 XStoreProductQueryHandle。 在後續呼叫中,應使用 XStoreProductsQueryNextPageResult 所傳回的查詢控制代碼。
傳回值
類型:bool 如果還有更多結果頁面要顯示,則傳回 true。備註
此函式可用來檢查產品查詢是否有其他產品資訊頁面。 它會在使用 XStoreEnumerateProductsQuery 列舉產品查詢之後呼叫。 如果此函式傳回 true,表示還有更多產品查詢資訊要讀取。 呼叫 XStoreProductsQueryNextPageAsync 以讀取其他產品查詢資訊。 如需使用範例,請參閱 XStoreQueryAssociatedProductsAsync。需求
標頭: XStore.h (包含在 XGameRuntime.h 中) 程式庫: xgameruntime.lib 支援的平台: Windows、XBOX One 系列主機和 XBOX Series 主機另請參閱
XStoreXStoreEnumerateProductsQuery
XStoreProductsQueryNextPageAsync
XStoreQueryAssociatedProductsAsync
