Share via


StorePurchaseProperties Class

Definition

Contains additional details that you can pass to a purchase request for a product, including the product name to display to the user during the purchase.

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

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced in v1.0)

Remarks

The RequestPurchaseAsync methods of the StoreContext, StoreProduct, StoreSku, and StoreAvailability classes have overloads that accept an argument of this type.

Constructors

StorePurchaseProperties()

Initializes a new instance of the StorePurchaseProperties class.

StorePurchaseProperties(String)

Initializes a new instance of the StorePurchaseProperties class. This overload provides the option to specify the product name that is displayed to the user during the purchase.

Properties

ExtendedJsonData

Gets or sets a JSON-formatted string that contains extended data to pass with the purchase request to the Microsoft Store.

Name

Gets or sets the product name that is displayed to the user during the purchase. The specified name appears in the title bar of the purchase UI.

Applies to