StoreSku Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides info for a stock keeping unit (SKU) of a product in the Microsoft Store.
public ref class StoreSku sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StoreSku final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StoreSku
Public NotInheritable Class StoreSku
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Services.Store.StoreContract (introduced in v1.0)
|
Remarks
A SKU is a code that uniquely identifies a particular version of a product or service. It is a very common term used in the field of inventory management. 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 |
Gets the availabilities for the current product SKU. Each product SKU can have one or more availabilities that have different prices. |
BundledSkus |
Gets the list of Store IDs for the apps or add-ons that are bundled with this product SKU. |
CollectionData |
Gets additional data for the current product SKU, if the user has an entitlement to use the SKU. |
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 Partner Center. |
Description |
Gets the product SKU description from the Microsoft Store listing. |
ExtendedJsonData |
Gets complete data for the current product SKU from the Store in JSON format. |
Images |
Gets the images from the Microsoft Store listing for the product SKU. |
IsInUserCollection |
Gets a value that indicates whether the current user has an entitlement to use the current product SKU. |
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 |
Gets a value that indicates whether the current product SKU is a trial SKU. |
Language |
Gets the language for the data in the Microsoft Store listing for the product SKU. |
Price |
Gets the price of the default availability for this product SKU. |
StoreId |
Gets the Store ID of this product SKU. |
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 |
Gets the product SKU title from the Microsoft Store listing. |
Videos |
Gets the videos from the Microsoft Store listing for the product SKU. |
Methods
GetIsInstalledAsync() |
Indicates whether this product SKU is installed on the current device. |
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) |
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. |