ProductPurchaseDisplayProperties Classe

Définition

Permet de fournir le nom du produit affiché à l’utilisateur au moment de l’achat. Cette classe est utilisée dans la création d’une opération RequestProductPurchaseAsync pour représenter visuellement une offre spécifique dans un grand catalogue de produits in-app, qui est représenté par une seule entrée de produit dans le Microsoft Store.

Notes

Windows Phone 8 développeurs peuvent également afficher une image associée au produit en fournissant un URI avec une image pour l’affichage et une description consommée en interne.

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
Héritage
Object Platform::Object IInspectable ProductPurchaseDisplayProperties
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)

Constructeurs

ProductPurchaseDisplayProperties()

Crée un instance de ProductPurchaseDisplayProperties.

ProductPurchaseDisplayProperties(String)

Crée une instance de ProductPurchaseDisplayProperties qui inclut le nom de produit spécifié à afficher à l’utilisateur.

Propriétés

Description

Windows Phone uniquement. Il s’agit d’une description interne du produit.

Image

Windows Phone uniquement. Obtient ou définit l’emplacement d’une image utilisée pour représenter le produit au moment de l’achat.

Name

Obtient ou définit le nom du produit qui est affiché à l’utilisateur au moment de l’achat.

S’applique à