语言

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、StoreProduct、StoreSku 和 StoreAvailability 类的 RequestPurchaseAsync 方法具有接受此类型的参数的重载。

构造函数

名称 说明
StorePurchaseProperties()

初始化 StorePurchaseProperties 类的新实例。

StorePurchaseProperties(String)

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

属性

名称 说明
ExtendedJsonData

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

Name

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

适用于