Jaa


Windows.ApplicationModel.Store Namespace

Provides types and members for interacting with the Windows Store to add in-app purchases and trial functionality to your Universal Windows Platform (UWP) app.

Note

The Windows.ApplicationModel.Store namespace is no longer being updated with new features. If your project targets Windows 10 Anniversary Edition (10.0; Build 14393) or a later release in Visual Studio (that is, you are targeting Windows 10, version 1607, or later), we recommend that you use the Windows.Services.Store namespace instead. For more information, see In-app purchases and trials. The Windows.ApplicationModel.Store namespace is not supported in Windows desktop applications that use the Desktop Bridge or in apps or games that use a development sandbox in Partner Center (for example, this is the case for any game that integrates with Xbox Live). These products must use the Windows.Services.Store namespace to implement in-app purchases and trials.

Classes

CurrentApp

Defines methods and properties you can use to get license and listing info about the current app and perform in-app product purchases.

Note

The CurrentApp class and the other types in the Windows.ApplicationModel.Store namespace are no longer being updated with new features. If your project targets Windows 10 Anniversary Edition (10.0; Build 14393) or a later release in Visual Studio (that is, you are targeting Windows 10, version 1607, or later), we recommend that you use the Windows.Services.Store namespace instead. For more information, see In-app purchases and trials. The CurrentApp class is not supported in Windows desktop applications that use the Desktop Bridge or in apps or games that use a development sandbox in Partner Center (for example, this is the case for any game that integrates with Xbox Live). These products must use the Windows.Services.Store namespace to implement in-app purchases and trials.

CurrentAppSimulator

Defines methods and properties used to instantiate an object that you can use to get simulated license info during testing.

Note

The CurrentAppSimulator class and the other types in the Windows.ApplicationModel.Store namespace are no longer being updated with new features. If your project targets Windows 10 Anniversary Edition (10.0; Build 14393) or a later release in Visual Studio (that is, you are targeting Windows 10, version 1607, or later), we recommend that you use the Windows.Services.Store namespace instead. For more information, see In-app purchases and trials. The CurrentAppSimulator class is not supported in Windows desktop applications that use the Desktop Bridge or in apps or games that use a development sandbox in Partner Center (for example, this is the case for any game that integrates with Xbox Live). These products must use the Windows.Services.Store namespace to implement in-app purchases and trials.

LicenseInformation

Provides access to the current app's license metadata.

ListingInformation

Provides the listing info that describes the app in the Microsoft Store.

ProductLicense

Provides info about a license that is associated with an add-on (also called an in-app product or IAP).

ProductListing

Provides localized information that details an add-on (also called an in-app product or IAP).

ProductPurchaseDisplayProperties

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.

PurchaseResults

Contains information detailing the results of an in-app product purchase transaction.

UnfulfilledConsumable

Contains purchase and product information for an unfulfilled consumable in-app product.

Enums

FulfillmentResult

Defines values used to indicate fulfillment status for a consumable in-app product.

ProductPurchaseStatus

Defines values used to indicate the transaction status when purchasing an in-app product.

ProductType

Specifies the product type for an in-app product.

Delegates

LicenseChangedEventHandler

Represents the method that will handle the LicenseChanged event.

Remarks

You can use members in this namespace to add in-app purchases and trial functionality to your Universal Windows Platform (UWP) app to help monetize your app. You can use members in this namespace to check the license state of your app and determine if it's a trial version or an active license. This namespace can be used by UWP apps that target any version of Windows 10.

You need a valid Windows Store developer account to interact with the Windows Store by using the CurrentApp class. If you don't have a Windows Store developer account, you can use only the simulated functions in the CurrentAppSimulator class.

See also