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

# XStoreProductKind

> XStoreProductKind

# XStoreProductKind

表示產品類型。

## 語法

```cpp theme={null}
enum class XStoreProductKind  : uint32_t  
{  
    None = 0x00,  
    Consumable = 0x01,  
    Durable = 0x02,  
    Game = 0x04,  
    Pass = 0x08,  
    UnmanagedConsumable = 0x10,  
}  
```

## 常數

| 常數 | 描述 |
| - | - |
| None | 沒有產品類型。 |
| Consumable | 由市集管理的消耗性產品 (具有數量)。 |
| Durable | 耐久性產品。 |
| Game | 基礎遊戲產品。 |
| Pass | 由市集管理的訂閱，例如 XBOX Game Pass。 |
| UnmanagedConsumable | 由開發人員管理的消耗性產品 (需要先履行才能再次購買) |

## 備註

**XStoreProductKind** 在許多 XStore 查詢中用作篩選條件，以取得特定類型產品的相關資訊。
**XStoreProductKind** 也是 [XStoreProduct](/zh-TW/reference/system/xstore/structs/xstoreproduct) 結構的成員，該結構描述市集產品。
**XStoreProductKind** 是旗標列舉，其值可以組合，以同時表示多種產品類型。

附加元件組合的類型為 `Durable`，但遊戲組合 (與遊戲建立在相同層級的組合) 的類型為 `Game`)

`Pass` 指的是由市集管理的訂閱，透過您的開發人員合作夥伴經理或 Microsoft 代表建立及管理。
由市集管理的訂閱與附加元件訂閱不同。
附加元件訂閱是在 Partner Center 中遊戲的附加元件頁面下進行設定。

## 需求

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

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

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreQueryAssociatedProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsasync)\
[XStoreQueryEntitledProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryentitledproductsasync)\
[XStoreQueryProductForPackageAsync](/zh-TW/reference/system/xstore/functions/xstorequeryproductforpackageasync)\
[XStoreQueryProductsAsync](/zh-TW/reference/system/xstore/functions/xstorequeryproductsasync)\
[XStoreProduct](/zh-TW/reference/system/xstore/structs/xstoreproduct)


## Related topics

- [XStoreProductKind](/reference/system/xstore/enums/xstoreproductkind.md)
- [XStoreShowAssociatedProductsUIAsync](/reference/system/xstore/functions/xstoreshowassociatedproductsuiasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [XStoreQueryEntitledProductsAsync](/reference/system/xstore/functions/xstorequeryentitledproductsasync.md)
- [XStoreQueryProductForPackageAsync](/reference/system/xstore/functions/xstorequeryproductforpackageasync.md)
