StoreSubscriptionInfo StoreSubscriptionInfo StoreSubscriptionInfo StoreSubscriptionInfo Class

Definition

Provides subscription info for a product SKU that represents a subscription with recurring billing.

Important

Currently, the ability to create subscription add-ons is only available to developers who are participating in an early adoption program. We will make subscription add-ons available to all developer accounts in the future. For more information, see Enable subscription add-ons for your app.

public : sealed class StoreSubscriptionInfo : IStoreSubscriptionInfopublic sealed class StoreSubscriptionInfo : IStoreSubscriptionInfoPublic NotInheritable Class StoreSubscriptionInfo Implements IStoreSubscriptionInfo// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced v1)

Remarks

The StoreSku.SubscriptionInfo property returns an object of this type.

Properties

BillingPeriod BillingPeriod BillingPeriod BillingPeriod

Gets the duration of the billing period for a subscription, in the units specified by the BillingPeriodUnit property.

public : unsigned int BillingPeriod { get; }public uint BillingPeriod { get; }Public ReadOnly Property BillingPeriod As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The duration of the billing period, in the units specified by the BillingPeriodUnit property.

BillingPeriodUnit BillingPeriodUnit BillingPeriodUnit BillingPeriodUnit

Gets the units of the billing period for a subscription.

public : StoreDurationUnit BillingPeriodUnit { get; }public StoreDurationUnit BillingPeriodUnit { get; }Public ReadOnly Property BillingPeriodUnit As StoreDurationUnit// You can use this property in JavaScript.
Value
StoreDurationUnit StoreDurationUnit StoreDurationUnit StoreDurationUnit

A value that specifies the units of the subscription billing period.

HasTrialPeriod HasTrialPeriod HasTrialPeriod HasTrialPeriod

Gets a value that indicates whether the subscription contains a trial period.

public : PlatForm::Boolean HasTrialPeriod { get; }public bool HasTrialPeriod { get; }Public ReadOnly Property HasTrialPeriod As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if this subscription contains a trial period; otherwise, false.

TrialPeriod TrialPeriod TrialPeriod TrialPeriod

Gets the duration of the trial period for the subscription, in the units specified by the TrialPeriodUnit property. To determine whether the subscription has a trial period, use the HasTrialPeriod property.

public : unsigned int TrialPeriod { get; }public uint TrialPeriod { get; }Public ReadOnly Property TrialPeriod As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The duration of the trial period, in the units specified by the TrialPeriodUnit property.

TrialPeriodUnit TrialPeriodUnit TrialPeriodUnit TrialPeriodUnit

Gets the units of the trial period for the subscription.

public : StoreDurationUnit TrialPeriodUnit { get; }public StoreDurationUnit TrialPeriodUnit { get; }Public ReadOnly Property TrialPeriodUnit As StoreDurationUnit// You can use this property in JavaScript.
Value
StoreDurationUnit StoreDurationUnit StoreDurationUnit StoreDurationUnit

A value that specifies the units of the subscription trial period.

See Also