語言

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 需求

規格需求 Description
裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Services.Store.StoreContract (已於 v1.0 引進)

備註

StoreAvailability.Price、StoreProduct.Price 和 StoreSku.Price 屬性會回傳此類物件。

屬性

名稱 Description
CurrencyCode

取得當前用戶市場的 ISO 4217 貨幣代碼。

FormattedBasePrice

取得產品的基礎價格,並依據當前使用者的市場格式。

FormattedPrice

取得產品的購買價格,並以符合當前用戶市場的適當格式。

FormattedRecurrencePrice

若該產品啟用定期計費,則以符合當前使用者市場的適當格式取得產品的定期價格。

IsOnSale

會獲得一個表示產品是否在特價的數值。

SaleEndDate

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

UnformattedBasePrice

包含 Microsoft Store 產品列表的價格資訊。

UnformattedPrice

包含 Microsoft Store 產品列表的價格資訊。

UnformattedRecurrencePrice

包含 Microsoft Store 產品列表的價格資訊。

適用於