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

# 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](/zh-TW/reference/system/xstore/structs/xstoresubscriptioninfo) 結構的成員。它描述兩個不同的值：訂閱可在試用基礎上使用的時間長度，以及決定訂閱多久必須付款一次的計費週期。**XStoreDurationUnit** 不會用來組成時間戳記，且一次只會使用一個值來描述訂閱期間。例如，以週為單位的試用期，或以月為單位的計費週期。

## 需求

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

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

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreSubscriptionInfo](/zh-TW/reference/system/xstore/structs/xstoresubscriptioninfo)


## Related topics

- [XStoreDurationUnit](/zh-CN/reference/system/xstore/enums/xstoredurationunit.md)
- [XStoreSubscriptionInfo](/reference/system/xstore/structs/xstoresubscriptioninfo.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [Economy V2 Limits](/services/playfab/economy-monetization/economy-v2/limits.md)
- [Economy V2 の制限](/ja-jp/services/playfab/economy-monetization/economy-v2/limits.md)
