Windows.Services.Store Namespace

Provides types and members you can use to access and manage Microsoft Store-related data for the current app. For example, you can use this namespace to get Microsoft Store listing and license info for the current app, purchase the current app or products that are offered by the app, or download and install package updates for the app.

Note

This namespace was introduced in Windows 10, version 1607, and it can only be used in projects that target Windows 10 Anniversary Edition (10.0; Build 14393) or a later release in Visual Studio. If your project targets an earlier version of Windows 10, you must use the Windows.ApplicationModel.Store namespace instead of the Windows.Services.Store namespace. For more information, see In-app purchases and trials.

Classes

StoreAcquireLicenseResult

Provides response data for a request to acquire the license for a downloadable content (DLC) add-on package for the current app.

StoreAppLicense

Provides license info for the current app, including licenses for products that are offered by the app.

StoreAvailability

Represents a specific instance of a product SKU that can be purchased.

StoreCanAcquireLicenseResult

Provides response data for a request to determine whether a license can be acquired for a downloadable content (DLC) add-on package.

StoreCollectionData

Provides additional data for a product SKU that the user has an entitlement to use.

StoreConsumableResult

Provides response data for a request that involves a consumable add-on for the current app.

StoreContext

Provides members you can use to access and manage Microsoft Store-related data for the current app. For example, you can use members of this class to get Microsoft Store listing and license info for the current app, purchase the current app or products that are offered by the app, or download and install package updates for the app.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

StoreImage

Represents an image that is associated with a product listing in the Windows Store.

StoreLicense

Provides license info for a durable add-on that is associated with the current app.

StorePackageInstallOptions

Represents options that can be specified when using the RequestDownloadAndInstallStorePackagesAsync method to download and install downloadable content (DLC) packages for the current app.

StorePackageLicense

Provides license info for a downloadable content (DLC) package for the current app.

StorePackageUpdate

Provides info about a package for the current app that has an update available for download from the Microsoft Store.

StorePackageUpdateResult

Provides response data for a request to download and install a package for the current app.

StorePrice

Contains pricing info for a product listing in the Microsoft Store.

StoreProduct

Represents a product that is available in the Microsoft Store.

StoreProductOptions

Contains a collection of filter strings you can use with the GetStoreProductsAsync method to get info for the specified products that are associated with the current app.

StoreProductPagedQueryResult

Provides response data for a paged request to retrieve details about products that can be purchased from within the current app.

StoreProductQueryResult

Provides response data for a request to retrieve details about products that can be purchased from within the current app.

StoreProductResult

Provides response data for a request to retrieve details about the current app.

StorePurchaseProperties

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.

StorePurchaseResult

Provides response data for a request to purchase an app or product that is offered by the app.

StoreQueueItem

Represents info about a new or updated package that is in the download and installation queue for the current app.

StoreQueueItemCompletedEventArgs

Provides data for the Completed event of the StoreQueueItem class.

StoreQueueItemStatus

Provides status info for a new or updated package that is in the download and installation queue for the current app.

StoreRateAndReviewResult

Provides response data for a request to rate and review the product.

StoreRequestHelper

Provides a helper method that can be used to send requests to the Microsoft Store for operations that do not yet have a corresponding API available in the Windows SDK.

StoreSendRequestResult

Provides response data for a request that is sent to the Microsoft Store.

StoreSku

Provides info for a stock keeping unit (SKU) of a product in the Microsoft Store.

StoreSubscriptionInfo

Provides subscription info for a product SKU that represents a subscription with recurring billing.

StoreUninstallStorePackageResult

Provides response data for a request to uninstall a package for the current app.

StoreVideo

Represents a video that is associated with a product listing in the Microsoft Store.

Structs

StorePackageUpdateStatus

Provides status info for a package that is associated with a download or installation request.

Enums

StoreCanLicenseStatus

Defines values that represent the license status for a downloadable content (DLC) add-on package.

StoreConsumableStatus

Defines values that represent the status of an request that is related to a consumable add-on.

StoreDurationUnit

Defines values that represent the units of a trial period or billing period for a subscription.

StorePackageUpdateState

Defines values that represent the state of a package download or installation request.

StorePurchaseStatus

Defines values that represent the status of a request to purchase an app or add-on.

StoreQueueItemExtendedState

Defines values that represent extended state info for a new or updated package that is in the download and installation queue for the current app.

StoreQueueItemKind

Defines values that describe the operation being performed for the current package in the download and installation queue.

StoreQueueItemState

Defines values that specify the state of a new or updated package that is in the download and installation queue for the current app.

StoreRateAndReviewStatus

Gets the result status for the rate and review request for the product.

StoreUninstallStorePackageStatus

Defines values that represent the status of a package uninstall request.

Remarks

The StoreContext class is the main entry point to the Windows.Services.Store namespace. Use members of this class to perform tasks such as getting Microsoft Store listing and license info for the current app, purchasing the current app or add-ons that are offered by the app, or downloading and installing package updates for the app. Other classes and types in this namespace represent items such as add-ons for the app, licenses for the app and its add-ons, and Microsoft Store listing info for the app.

See also