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 中引入)

注解

StoreContextStoreProductStoreSkuStoreAvailability 类的 RequestPurchaseAsync 方法具有接受此类型参数的重载。

构造函数

StorePurchaseProperties()

初始化 StorePurchaseProperties 类的新实例。

StorePurchaseProperties(String)

初始化 StorePurchaseProperties 类的新实例。 此重载提供用于指定在购买期间向用户显示的产品名称的选项。

属性

ExtendedJsonData

获取或设置 JSON 格式的字符串,其中包含要随购买请求一起传递给 Microsoft Store 的扩展数据。

Name

获取或设置在购买期间向用户显示的产品名称。 指定的名称显示在购买 UI 的标题栏中。

适用于