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

期間値の単位。

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

## Requirements

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

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

## See also

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


## Related topics

- [XStoreSubscriptionInfo](/ja-jp/reference/system/xstore/structs/xstoresubscriptioninfo.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [Economy V2 の制限](/ja-jp/services/playfab/economy-monetization/economy-v2/limits.md)
- [PlayFab Services SDK リリースノート 2023](/ja-jp/services/playfab/release-notes/2023.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
