语言

StorePrice 类

定义

包含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
继承
Object Platform::Object IInspectable StorePrice
属性

Windows 要求

要求 说明
设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Services.Store.StoreContract (在 v1.0 中引入)

注解

StoreAvailability.Price、StoreProduct.Price 和 StoreSku.Price 属性返回此类型的对象。

属性

名称 说明
CurrencyCode

获取当前用户的市场的 ISO 4217 货币代码。

FormattedBasePrice

获取具有当前用户市场适当格式的产品的基本价格。

FormattedPrice

获取具有当前用户市场适当格式的产品的购买价格。

FormattedRecurrencePrice

如果为此产品启用了定期计费,则获取具有当前用户市场适当格式的产品定期价格。

IsOnSale

获取一个值,该值指示产品是否正在销售。

SaleEndDate

获取产品的销售期的结束日期(如果产品正在销售)。

UnformattedBasePrice

包含Microsoft Store中产品列表的定价信息。

UnformattedPrice

包含Microsoft Store中产品列表的定价信息。

UnformattedRecurrencePrice

包含Microsoft Store中产品列表的定价信息。

适用于