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

期間値の単位。

## Syntax

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

## Constants

| 定数 | 説明 |
| - | - |
| Minute | 期間は分単位です。 |
| Hour | 期間は時間単位です。 |
| Day | 期間は日単位です。 |
| Week | 期間は週単位です。 |
| Month | 期間は月単位です。 |
| Year | 期間は年単位です。 |

## Remarks

**XStoreDurationUnit** は [XStoreSubscriptionInfo](https://docs.xbox.com/ja-jp/reference/system/xstore/structs/xstoresubscriptioninfo.md) 構造体のメンバーです。これは 2 つの異なる値を表します。1 つはサブスクリプションを試用として使用できる時間の長さ、もう 1 つはサブスクリプションの支払い頻度を決定する請求期間です。**XStoreDurationUnit** はタイム スタンプを構成するために使用されるものではなく、サブスクリプション期間を表すために一度に 1 つの値のみが使用されます。たとえば、週単位で測定された試用期間や、月単位で測定された請求期間などです。

## Requirements

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## See also

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


## Related topics

- [XStoreSubscriptionInfo](https://docs.xbox.com/ja-jp/reference/system/xstore/structs/xstoresubscriptioninfo.md)
- [XStore (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)
- [Economy V2 の制限](https://docs.xbox.com/ja-jp/services/playfab/economy-monetization/economy-v2/limits.md)
- [PlayFab Services SDK リリースノート 2023](https://docs.xbox.com/ja-jp/services/playfab/release-notes/2023.md)
- [PFCatalogCatalogPrice](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfcatalogtypes/structs/pfcatalogcatalogprice.md)
