StoreSku StoreSku StoreSku StoreSku StoreSku Class

Definition

Provides info for a SKU of a product in the Microsoft Store.

public : sealed class StoreSku : IStoreSku
struct winrt::Windows::Services::Store::StoreSku : IStoreSku
public sealed class StoreSku : IStoreSku
Public NotInheritable Class StoreSku Implements IStoreSku
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced v1)

Remarks

Products in the Store are organized in a hierarcy of product, SKU, and availability objects. Products are represented by StoreProduct objects. The SKUs for each product are represented by StoreSku objects, and the availabilities for each SKU are represented by StoreAvailability objects. For more information, see In-app purchases and trials.

To access the SKUs for a product, use the Skus property of the StoreProduct for the product in which you are interested.

Properties

Availabilities Availabilities Availabilities Availabilities Availabilities

Gets the availabilities for the current product SKU. Each product SKU can have one or more availabilities that have different prices.

BundledSkus BundledSkus BundledSkus BundledSkus BundledSkus

Gets the list of Store IDs for the apps or add-ons that are bundled with this product SKU.

CollectionData CollectionData CollectionData CollectionData CollectionData

Gets additional data for the current product SKU, if the user has an entitlement to use the SKU.

CustomDeveloperData CustomDeveloperData CustomDeveloperData CustomDeveloperData CustomDeveloperData

Gets the custom developer data string (also called a tag) that contains custom information about the add-on that this product SKU represents. This string corresponds to the value of the Custom developer data field in the properties page for the add-on in the Windows Dev Center dashboard.

Description Description Description Description Description

Gets the product SKU description from the Microsoft Store listing.

ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData

Gets complete data for the current product SKU from the Store in JSON format.

Images Images Images Images Images

Gets the images from the Microsoft Store listing for the product SKU.

IsInUserCollection IsInUserCollection IsInUserCollection IsInUserCollection IsInUserCollection

Gets a value that indicates whether the current user has an entitlement to use the current product SKU.

IsSubscription IsSubscription IsSubscription IsSubscription IsSubscription

Gets a value that indicates whether the current product SKU is a subscription with recurring billing. For more information about the subscription, see the SubscriptionInfo property.

IsTrial IsTrial IsTrial IsTrial IsTrial

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

Language Language Language Language Language

Gets the language for the data in the Microsoft Store listing for the product SKU.

Price Price Price Price Price

Gets the price of the default availability for this product SKU.

StoreId StoreId StoreId StoreId StoreId

Gets the Store ID of this product SKU.

SubscriptionInfo SubscriptionInfo SubscriptionInfo SubscriptionInfo SubscriptionInfo

Gets subscription information for this product SKU, if this product SKU is a subscription with recurring billing. To determine whether this product SKU is a subscription, use the IsSubscription property.

Title Title Title Title Title

Gets the product SKU title from the Microsoft Store listing.

Videos Videos Videos Videos Videos

Gets the videos from the Microsoft Store listing for the product SKU.

Methods

GetIsInstalledAsync() GetIsInstalledAsync() GetIsInstalledAsync() GetIsInstalledAsync() GetIsInstalledAsync()

Indicates whether this product SKU is installed on the current device.

RequestPurchaseAsync() RequestPurchaseAsync() RequestPurchaseAsync() RequestPurchaseAsync() RequestPurchaseAsync()

Requests the purchase of the product SKU and displays the UI that is used to complete the transaction via the Windows Store.

Important

This method must be called on the UI thread.

RequestPurchaseAsync(StorePurchaseProperties) RequestPurchaseAsync(StorePurchaseProperties) RequestPurchaseAsync(StorePurchaseProperties) RequestPurchaseAsync(StorePurchaseProperties) RequestPurchaseAsync(StorePurchaseProperties)

Requests the purchase of the product SKU and displays the UI that is used to complete the transaction via the Microsoft Store. This method provides the option to specify additional details for a specific offer within a large catalog of products that are represented by a single listing in the Microsoft Store, including the product name to display to the user during the purchase.

Important

This method must be called on the UI thread.

See Also