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

# XStoreProductQueryCallback

> XStoreProductQueryCallback

# XStoreProductQueryCallback

產品查詢的遊戲定義回呼。

## 語法

```cpp theme={null}
bool XStoreProductQueryCallback(  
         const XStoreProduct* product,  
         void* context  
)  
```

### 參數

*product*   \_In\_\
類型：[XStoreProduct\*](https://docs.xbox.com/zh-TW/reference/system/xstore/structs/xstoreproduct.md)

產品的描述。

*context*   \_In\_opt\_\
類型：void\*

要傳遞給回呼的遊戲定義內容。

### 傳回值

類型：bool

傳回 true 以繼續列舉查詢結果；否則傳回 false。

## 備註

這個遊戲定義的函式可用來從列舉的市集產品集合中讀取其中一個產品的資訊。此函式必須具有與此處所提供定義相同的傳回類型和參數，並作為 [XStoreEnumerateProductsQuery](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery.md) 函式的回呼使用。如需使用範例，請參閱 [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)。

## 需求

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

**程式庫：** xgameruntime.lib

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

## 另請參閱

[XStore](https://docs.xbox.com/zh-TW/reference/system/xstore/xstore_members.md)\
[XStoreEnumerateProductsQuery](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery.md)\
[XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)


## Related topics

- [XStoreEnumerateProductsQuery](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStore (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xstore/xstore_members.md)
- [XStoreQueryProductsAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryproductsasync.md)
- [XStoreQueryProductsResult](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryproductsresult.md)
- [XStoreQueryProductForPackageAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryproductforpackageasync.md)
