StorePurchaseProperties 類別

定義

包含您可以傳遞至產品購買要求的其他詳細資料,包括購買期間要向使用者顯示的產品名稱。

public ref class StorePurchaseProperties sealed
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Services.Store.StoreContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.Services.Store.IStorePurchasePropertiesFactory, 65536, "Windows.Services.Store.StoreContract")]
/// [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 StorePurchaseProperties final
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Services.Store.StoreContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Services.Store.IStorePurchasePropertiesFactory), 65536, "Windows.Services.Store.StoreContract")]
[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 StorePurchaseProperties
function StorePurchaseProperties(name)
Public NotInheritable Class StorePurchaseProperties
繼承
Object Platform::Object IInspectable StorePurchaseProperties
屬性

Windows 需求

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

備註

StoreCoNtext、StoreProductStoreSkuStoreAvailability類別的RequestPurchaseAsync方法具有可接受此類型引數的多載。

建構函式

StorePurchaseProperties()

初始化 StorePurchaseProperties 類別的新實例。

StorePurchaseProperties(String)

初始化 StorePurchaseProperties 類別的新實例。 此多載提供選項,以指定在購買期間向使用者顯示的產品名稱。

屬性

ExtendedJsonData

取得或設定 JSON 格式字串,其中包含要隨購買要求一起傳遞至 Microsoft Store 的擴充資料。

Name

取得或設定在購買期間向使用者顯示的產品名稱。 指定的名稱會出現在購買 UI 的標題列中。

適用於