StoreCollectionData StoreCollectionData StoreCollectionData StoreCollectionData Class

Definition

Provides additional data for a product SKU that the user has an entitlement to use.

public : sealed class StoreCollectionData : IStoreCollectionDatapublic sealed class StoreCollectionData : IStoreCollectionDataPublic NotInheritable Class StoreCollectionData Implements IStoreCollectionData// 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.CollectionData property returns an object of this type.

Properties

AcquiredDate AcquiredDate AcquiredDate AcquiredDate

Gets the date on which the product SKU was acquired.

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

The date on which the product SKU was acquired.

CampaignId CampaignId CampaignId CampaignId

Gets the promotion campaign ID that is associated with the product SKU.

public : PlatForm::String CampaignId { get; }public string CampaignId { get; }Public ReadOnly Property CampaignId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The promotion campaign ID that is associated with the product SKU.

Remarks

Starting in Windows 10, you can seed the installation URL for your app with an ID that represents a custom promotion campaign. This enables you to publicize the installation URL in different locations and use the campaign ID to determine which location the customer clicked on the installation URL. Use the CampaignId property to retrieve the campaign ID for an app. For more information about custom app promotion campaigns, see Create a custom app promotion campaign.

See Also

DeveloperOfferId DeveloperOfferId DeveloperOfferId DeveloperOfferId

Gets the developer offer ID that is associated with the product SKU.

public : PlatForm::String DeveloperOfferId { get; }public string DeveloperOfferId { get; }Public ReadOnly Property DeveloperOfferId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The developer offer ID that is associated with the product SKU.

Remarks

If you specified a devOfferId value in the ExtendedJsonData property of the StorePurchaseProperties object that you passed to the RequestPurchaseAsync method when you purchased the product, you can retrieve that value by using this property.

EndDate EndDate EndDate EndDate

Gets the end date of the trial for the product SKU, if the SKU is a trial version or a durable add-on that expires after a set duration.

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

The end date of the trial for the product SKU, if the SKU is a trial version or a durable add-on that expires after a set duration.

ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData

Gets complete collection data for the product SKU in JSON format.

public : PlatForm::String ExtendedJsonData { get; }public string ExtendedJsonData { get; }Public ReadOnly Property ExtendedJsonData As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

A JSON-formatted string that contains complete collection data for the product SKU.

Remarks

Use the ExtendedJsonData property to access the complete data for the StoreCollectionData object as a JSON-formatted string in your code. For more information about the structure of the data, see Data schemas for Store products.

See Also

IsTrial IsTrial IsTrial IsTrial

Gets a value that indicates whether the product SKU is a trial version.

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

True if the license for the product SKU is a trial version; otherwise, false.

StartDate StartDate StartDate StartDate

Gets the start date of the trial for the product SKU, if the SKU is a trial version or a durable add-on that expires after a set duration.

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

The start date of the trial for the product SKU, if the SKU is a trial version or a durable add-on that expires after a set duration.

TrialTimeRemaining TrialTimeRemaining TrialTimeRemaining TrialTimeRemaining

Gets the remaining trial time for the product SKU.

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

The remaining trial time for the product SKU.