> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreProductsQueryHasMorePages

> XStoreProductsQueryHasMorePages

# XStoreProductsQueryHasMorePages

檢查指定的查詢是否還有更多結果頁面。
對於 `XStoreQuery` API 而言，呼叫此函式是不可或缺的，尤其是預期會傳回多個結果的 API，例如 [XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync)。

## 語法

```cpp theme={null}
bool XStoreProductsQueryHasMorePages(  
         const XStoreProductQueryHandle productQueryHandle  
)  
```

### 參數

*productQueryHandle*   \_In\_\
類型：XStoreProductQueryHandle

要檢查是否有更多頁面之查詢的控制代碼。第一次呼叫 XStoreProductsQueryHasMorePages 時，這會是 [XStoreQueryProductForCurrentGameResult](/zh-TW/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult)、[XStoreQueryProductForPackageResult](/zh-TW/reference/system/xstore/functions/xstorequeryproductforpackageresult)、[XStoreQueryEntitledProductsResult](/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsresult) 或 [XStoreQueryProductsResult](/zh-TW/reference/system/xstore/functions/xstorequeryproductsresult) 所傳回的 XStoreProductQueryHandle。
在後續呼叫中，應使用 [XStoreProductsQueryNextPageResult](/zh-TW/reference/system/xstore/functions/xstoreproductsquerynextpageresult) 所傳回的查詢控制代碼。

### 傳回值

類型：bool

如果還有更多結果頁面要顯示，則傳回 true。

## 備註

此函式可用來檢查產品查詢是否有其他產品資訊頁面。
它會在使用 [XStoreEnumerateProductsQuery](/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery) 列舉產品查詢之後呼叫。
如果此函式傳回 true，表示還有更多產品查詢資訊要讀取。
呼叫 [XStoreProductsQueryNextPageAsync](/zh-TW/reference/system/xstore/functions/xstoreproductsquerynextpageasync) 以讀取其他產品查詢資訊。
如需使用範例，請參閱 [XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync)。

## 需求

**標頭：** XStore.h (包含在 XGameRuntime.h 中)

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreEnumerateProductsQuery](/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery)\
[XStoreProductsQueryNextPageAsync](/zh-TW/reference/system/xstore/functions/xstoreproductsquerynextpageasync)\
[XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync)


## Related topics

- [XStoreProductsQueryHasMorePages](/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md)
- [XStoreProductsQueryNextPageResult](/es/reference/system/xstore/functions/xstoreproductsquerynextpageresult.md)
- [XStoreProductsQueryNextPageAsync](/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
- [XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md)
- [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)
