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

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

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

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

## 要求

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

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

## 另请参阅

[XStore](https://docs.xbox.com/zh-CN/reference/system/xstore/xstore_members.md)\
[XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)\
[XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryentitledproductsasync.md)\
[XStoreQueryProductForPackageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductforpackageasync.md)\
[XStoreQueryProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductsasync.md)\
[XStoreProduct](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreproduct.md)


## Related topics

- [XStoreShowAssociatedProductsUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowassociatedproductsuiasync.md)
- [XStore（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xstore/xstore_members.md)
- [XStoreQueryProductForPackageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductforpackageasync.md)
- [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)
- [XStoreProduct](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreproduct.md)
