> ## 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.

# XStoreQueryAssociatedProductsResult

> XStoreQueryAssociatedProductsResult

# XStoreQueryAssociatedProductsResult

取得 [XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync) 呼叫的結果。

## 語法

```cpp theme={null}
HRESULT XStoreQueryAssociatedProductsResult(  
         XAsyncBlock* async,  
         XStoreProductQueryHandle* productQueryHandle  
)  
```

### 參數

*async*   \_Inout\_\
類型：[XAsyncBlock\*](/zh-TW/reference/system/xasync/structs/xasyncblock)

您傳遞給 [XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync) 的 `XAsyncBlock`。
使用 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 來檢查呼叫的狀態並取得結果。
如需詳細資訊，請參閱 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock)。

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

傳回時，包含代表該查詢的 XStoreProductQueryHandle。
將傳回的 XStoreProductQueryHandle 傳遞給 [XStoreEnumerateProductsQuery](/zh-TW/reference/system/xstore/functions/xstoreenumerateproductsquery)，以列出查詢所傳回的產品。

### 傳回值

類型：HRESULT

成功時傳回 S\_OK，否則傳回錯誤碼。

## 備註

此結果函式會擷取 [XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync) 的執行結果。如果執行成功，它會傳回相關聯產品的清單。
請在 [XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync) 之後呼叫此函式，通常是在回呼函式的內容中呼叫。

如需使用範例，請參閱 [XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync)。

## 需求

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

**程式庫：** xgameruntime.lib

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

## 概念文件

* [授與玩家附加元件內容的存取權](/zh-TW/publishing/xstore-commerce/xstore-granting-access)
* [基本商店作業](/zh-TW/publishing/xstore-commerce/xstore-basic-operations)

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)
[XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync)\
[XStoreQueryEntitledProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsasync)\
[XStoreQueryProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryproductsasync)\
[XStoreQueryProductForCurrentGameAsync](/zh-TW/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync)\
[XStoreQueryProductForPackageAsync](/zh-TW/reference/system/xstore/functions/xstorequeryproductforpackageasync)\
[基本商店作業](/zh-TW/publishing/xstore-commerce/xstore-basic-operations)\
[授與玩家附加元件內容的存取權](/zh-TW/publishing/xstore-commerce/xstore-granting-access)


## Related topics

- [XStoreQueryAssociatedProductsResult](/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
- [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)
- [Basic store operations](/publishing/xstore-commerce/xstore-basic-operations.md)
- [基本的な Store 操作](/ja-jp/publishing/xstore-commerce/xstore-basic-operations.md)
- [商店基本操作](/zh-CN/publishing/xstore-commerce/xstore-basic-operations.md)
