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

# XStoreDurationUnit

> XStoreDurationUnit

# XStoreDurationUnit

持续时间值的单位。

## 语法

```cpp theme={null}
enum class XStoreDurationUnit  : uint32_t  
{  
    Minute = 0,  
    Hour = 1,  
    Day = 2,  
    Week = 3,  
    Month = 4,  
    Year = 5,  
}  
```

## 常量

| 常量 | 说明 |
| - | - |
| Minute | 以分钟为单位的持续时间。 |
| Hour | 以小时为单位的持续时间。 |
| Day | 以天为单位的持续时间。 |
| Week | 以周为单位的持续时间。 |
| Month | 以月为单位的持续时间。 |
| Year | 以年为单位的持续时间。 |

## 备注

**XStoreDurationUnit** 是 [XStoreSubscriptionInfo](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoresubscriptioninfo.md) 结构的成员。它描述两个不同的值：可以试用订阅的时长和确定订阅付费频率的计费周期。**XStoreDurationUnit** 不用于组成时间戳，一次仅使用一个值来描述订阅周期。例如以周为单位测量的试用期，或以月为单位测量的计费周期。

## 要求

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

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

## 另请参阅

[XStore](https://docs.xbox.com/zh-CN/reference/system/xstore/xstore_members.md)\
[XStoreSubscriptionInfo](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoresubscriptioninfo.md)


## Related topics

- [XStoreSubscriptionInfo](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoresubscriptioninfo.md)
- [XStore（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xstore/xstore_members.md)
- [Economy V2 限制](https://docs.xbox.com/zh-CN/services/playfab/economy-monetization/economy-v2/limits.md)
- [PFCatalogCatalogPrice](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfcatalogtypes/structs/pfcatalogcatalogprice.md)
- [PlayFab Services SDK 2023 版本发布说明](https://docs.xbox.com/zh-CN/services/playfab/release-notes/2023.md)
