Share via


ProductPurchaseDisplayProperties Class

Definition

Used to provide the product name that is displayed to the user at time of purchase. This class is used in the creation of a RequestProductPurchaseAsync operation to visually represent a specific offer within a large catalog of in-app products, which is represented by a single product entry in the Microsoft Store.

Note

Windows Phone 8 developers can also display an image associated with the product by providing a URI with image for display and an internally consumed description.

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
Inheritance
Object Platform::Object IInspectable ProductPurchaseDisplayProperties
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

ProductPurchaseDisplayProperties()

Creates an instance of ProductPurchaseDisplayProperties.

ProductPurchaseDisplayProperties(String)

Creates an instance of ProductPurchaseDisplayProperties that includes the specified product name to display to the user.

Properties

Description

Windows Phone only. This is an internal product description.

Image

Windows Phone only. Gets or sets the location of an image used to represent the product at time of purchase.

Name

Gets or sets the product name that is displayed to the user at time of purchase.

Applies to