StoreAvailability StoreAvailability StoreAvailability StoreAvailability StoreAvailability Class

Definition

Represents a specific instance of a product SKU that can be purchased.

public : sealed class StoreAvailability : IStoreAvailability
struct winrt::Windows::Services::Store::StoreAvailability : IStoreAvailability
public sealed class StoreAvailability : IStoreAvailability
Public NotInheritable Class StoreAvailability Implements IStoreAvailability
// 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 availabilities for a SKU, use the Availabilities property of the StoreSku object in which you are interested.

Properties

EndDate EndDate EndDate EndDate EndDate

Gets the end date for the current SKU availability.

ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData

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

Price Price Price Price Price

Gets price info for the current SKU availability, including the base price, current price, and sale info.

StoreId StoreId StoreId StoreId StoreId

Gets the Store ID of the current SKU availability from the Microsoft Store catalog.

Methods

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

Requests the purchase of the current SKU availability and displays the UI that is used to complete the transaction via the Microsoft 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 current SKU availability 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