StorePrice Class

Definition

Contains pricing info for a product listing in the Microsoft Store.

public ref class StorePrice 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 StorePrice 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 StorePrice
Public NotInheritable Class StorePrice
Inheritance
Object Platform::Object IInspectable StorePrice
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

The StoreAvailability.Price, StoreProduct.Price, and StoreSku.Price properties return an object of this type.

Properties

CurrencyCode

Gets the ISO 4217 currency code for the market of the current user.

FormattedBasePrice

Gets the base price for the product with the appropriate formatting for the market of the current user.

FormattedPrice

Gets the purchase price for the product with the appropriate formatting for the market of the current user.

FormattedRecurrencePrice

Gets the recurring price for the product with the appropriate formatting for the market of the current user, if recurring billing is enabled for this product.

IsOnSale

Gets a value that indicates whether the product is on sale.

SaleEndDate

Gets the end date for the sale period for the product, if the product is on sale.

UnformattedBasePrice
UnformattedPrice
UnformattedRecurrencePrice

Applies to