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

# XStoreCloseProductsQueryHandle

> XStoreCloseProductsQueryHandle

# XStoreCloseProductsQueryHandle

指定されたストア製品クエリ ハンドルを閉じます。

## Syntax

```cpp theme={null}
void XStoreCloseProductsQueryHandle(  
         XStoreProductQueryHandle productQueryHandle  
)  
```

### Parameters

*productQueryHandle*   \_In\_\
型: XStoreProductQueryHandle

閉じるハンドル。

### Return value

型: void

## Remarks

この関数はタイム センシティブ スレッドで安全に呼び出すことができます。

この関数は、[XStoreQueryProductForCurrentGameResult](/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult)、[XStoreQueryProductForPackageResult.md](/reference/system/xstore/functions/xstorequeryproductforpackageresult)、[XStoreQueryEntitledProductsResult](/reference/system/xstore/functions/xstorequeryentitledproductsresult)、または [XStoreQueryProductsResult](/reference/system/xstore/functions/xstorequeryproductsresult) から返される製品クエリ ハンドルを閉じます。開かれた製品クエリ ハンドルを閉じないと、メモリ リークが発生します。使用例については、[XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync) を参照してください。

## Requirements

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [タイム センシティブ スレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## See also

[XStore](/reference/system/xstore/xstore_members)\
[XStoreQueryProductForCurrentGameResult](/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult)\
[XStoreQueryProductForPackageResult.md](/reference/system/xstore/functions/xstorequeryproductforpackageresult)\
[XStoreQueryEntitledProductsResult](/reference/system/xstore/functions/xstorequeryentitledproductsresult)\
[XStoreQueryProductsResult](/reference/system/xstore/functions/xstorequeryproductsresult)


## Related topics

- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [XStoreEnumerateProductsQuery](/ja-jp/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStoreQueryProductsResult](/ja-jp/reference/system/xstore/functions/xstorequeryproductsresult.md)
- [XStoreQueryAssociatedProductsResult](/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
