> ## 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](/reference/system/xstore/structs/xstoreproduct) 结构的成员，该结构描述商店产品。
**XStoreProductKind** 是一个标志枚举，其值可以组合以同时表示多种产品类型。

加载项捆绑包的类型为 `Durable`，但游戏捆绑包（与游戏在同一级别创建的那些）的类型为 `Game`。

`Pass` 是指商店管理的订阅，通过你的开发者合作伙伴经理或 Microsoft 代表创建和管理。
商店管理的订阅与加载项订阅不同。
加载项订阅在合作伙伴中心的游戏"加载项"页面下配置。

## 要求

**头文件：** XStore.h（包含在 XGameRuntime.h 中）

**支持的平台：** Windows、XBOX One 主机和 XBOX Series 主机

## 另请参阅

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


## Related topics

- [XStore](/zh-CN/reference/system/xstore/xstore_members.md)
- [XStoreShowAssociatedProductsUIAsync](/zh-CN/reference/system/xstore/functions/xstoreshowassociatedproductsuiasync.md)
- [XStoreQueryProductForPackageAsync](/zh-CN/reference/system/xstore/functions/xstorequeryproductforpackageasync.md)
- [XStoreProduct](/zh-CN/reference/system/xstore/structs/xstoreproduct.md)
- [XStoreQueryProductsAsync](/zh-CN/reference/system/xstore/functions/xstorequeryproductsasync.md)
