Langue

StorePurchaseProperties Classe

Définition

Contient des détails supplémentaires que vous pouvez transmettre à une demande d’achat pour un produit, y compris le nom du produit à afficher à l’utilisateur pendant l’achat.

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

Configuration requise pour Windows

Configuration requise Description
Famille d’appareils
Windows 10 Anniversary Edition (introduit dans 10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduit dans v1.0)

Remarques

Les méthodes RequestPurchaseAsync des classes StoreContext, StoreProduct, StoreSku et StoreAvailability ont des surcharges qui acceptent un argument de ce type.

Constructeurs

Nom Description
StorePurchaseProperties()

Initialise une nouvelle instance de la classe StorePurchaseProperties .

StorePurchaseProperties(String)

Initialise une nouvelle instance de la classe StorePurchaseProperties . Cette surcharge permet de spécifier le nom du produit affiché à l’utilisateur pendant l’achat.

Propriétés

Nom Description
ExtendedJsonData

Obtient ou définit une chaîne au format JSON qui contient des données étendues à transmettre avec la demande d’achat au Microsoft Store.

Name

Obtient ou définit le nom du produit affiché à l’utilisateur pendant l’achat. Le nom spécifié apparaît dans la barre de titre de l’interface utilisateur d’achat.

S’applique à