> ## 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](/reference/system/xstore/enums/xstoredurationunit)

试用期单位类型。

*trialPeriod*\
类型：uint32\_t

试用长度期。

*billingPeriodUnit*\
类型：[XStoreDurationUnit](/reference/system/xstore/enums/xstoredurationunit)

计费周期单位类型。

*billingPeriod*\
类型：uint32\_t

订阅的计费周期。

## 备注

订阅在合作伙伴中心创建和配置。为你的游戏提供的每种订阅类型都需要单独的订阅配置。
**XStoreSubscriptionInfo** 是 [XStoreSku](/reference/system/xstore/structs/xstoresku) 结构的成员。

## 要求

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

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

## 另请参阅

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


## Related topics

- [XStoreDurationUnit](/zh-CN/reference/system/xstore/enums/xstoredurationunit.md)
- [XStore](/zh-CN/reference/system/xstore/xstore_members.md)
- [XStoreSku](/zh-CN/reference/system/xstore/structs/xstoresku.md)
- [Subscriptions](/zh-CN/services/playfab/api-references/events/data-types/subscriptions.md)
- [PFSubscriptionModel](/zh-CN/services/playfab/api-references/c/pftypes/structs/pfsubscriptionmodel.md)
