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

# XStoreSubscriptionInfo

> XStoreSubscriptionInfo

# XStoreSubscriptionInfo

包含訂閱的相關資訊。

## 語法

```cpp theme={null}
typedef struct XStoreSubscriptionInfo {  
    bool hasTrialPeriod;  
    XStoreDurationUnit trialPeriodUnit;  
    uint32_t trialPeriod;  
    XStoreDurationUnit billingPeriodUnit;  
    uint32_t billingPeriod;  
} XStoreSubscriptionInfo  
```

### 成員

*hasTrialPeriod*\
類型：bool

指出訂閱是否有試用期。

*trialPeriodUnit*\
類型：[XStoreDurationUnit](/zh-TW/reference/system/xstore/enums/xstoredurationunit)

試用期的單位類型。

*trialPeriod*\
類型：uint32\_t

試用期的長度。

*billingPeriodUnit*\
類型：[XStoreDurationUnit](/zh-TW/reference/system/xstore/enums/xstoredurationunit)

計費週期的單位類型。

*billingPeriod*\
類型：uint32\_t

訂閱的計費週期。

## 備註

訂閱是在 Partner Center 中建立和設定的。為您的遊戲提供的每種訂閱類型都需要個別的訂閱設定。
**XStoreSubscriptionInfo** 是 [XStoreSku](/zh-TW/reference/system/xstore/structs/xstoresku) 結構的成員。

## 需求

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

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

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreSku](/zh-TW/reference/system/xstore/structs/xstoresku)


## Related topics

- [XStoreSubscriptionInfo](/reference/system/xstore/structs/xstoresubscriptioninfo.md)
- [XStoreDurationUnit](/reference/system/xstore/enums/xstoredurationunit.md)
