Share via


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.PriceStoreProduct.PriceStoreSku.Price屬性會傳回此類型的物件。

屬性

CurrencyCode

取得目前使用者的市場 ISO 4217 貨幣代碼。

FormattedBasePrice

取得具有目前使用者市場適當格式之產品的基底價格。

FormattedPrice

取得具有目前使用者市場適當格式之產品的購買價格。

FormattedRecurrencePrice

如果為此產品啟用週期性計費,則取得具有目前使用者市場之適當格式的產品週期性價格。

IsOnSale

取得值,這個值表示產品是否正在銷售。

SaleEndDate

如果產品正在銷售,則取得產品的銷售期間結束日期。

UnformattedBasePrice

包含 Microsoft Store 中產品清單的定價資訊。

UnformattedPrice

包含 Microsoft Store 中產品清單的定價資訊。

UnformattedRecurrencePrice

包含 Microsoft Store 中產品清單的定價資訊。

適用於