ProductPurchaseDisplayProperties 类

定义

用于提供在购买时向用户显示的产品名称。 此类用于创建 RequestProductPurchaseAsync 操作,以直观方式表示应用内产品目录中的特定产品/服务,该目录由 Microsoft Store 中的单个产品条目表示。

注意

Windows Phone 8 个开发人员还可以通过提供用于显示的图像和内部使用的说明提供 URI 来显示与产品关联的图像

public ref class ProductPurchaseDisplayProperties sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Store.IProductPurchaseDisplayPropertiesFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ProductPurchaseDisplayProperties final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Store.IProductPurchaseDisplayPropertiesFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ProductPurchaseDisplayProperties final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Store.IProductPurchaseDisplayPropertiesFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ProductPurchaseDisplayProperties
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Store.IProductPurchaseDisplayPropertiesFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ProductPurchaseDisplayProperties
function ProductPurchaseDisplayProperties(name)
Public NotInheritable Class ProductPurchaseDisplayProperties
继承
Object IInspectable ProductPurchaseDisplayProperties
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

构造函数

ProductPurchaseDisplayProperties()

创建 ProductPurchaseDisplayProperties 的实例。

ProductPurchaseDisplayProperties(String)

创建 ProductPurchaseDisplayProperties 的实例,其中包含要向用户显示的指定产品名称。

属性

Description

仅Windows Phone。 这是内部产品说明。

Image

仅Windows Phone。 获取或设置用于在购买时表示产品的图像的位置。

Name

获取或设置在购买时向用户显示的产品名称。

适用于