StorePurchaseStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines values that represent the status of a request to purchase an app or add-on.
public enum class StorePurchaseStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 65536)]
enum class StorePurchaseStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 65536)]
public enum StorePurchaseStatus
var value = Windows.Services.Store.StorePurchaseStatus.succeeded
Public Enum StorePurchaseStatus
- Inheritance
-
StorePurchaseStatus
- 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)
|
Fields
Name | Value | Description |
---|---|---|
Succeeded | 0 | The purchase request succeeded. |
AlreadyPurchased | 1 | The current user has already purchased the specified app or add-on. |
NotPurchased | 2 | The purchase request did not succeed. |
NetworkError | 3 | The purchase request did not succeed because of a network connectivity error. |
ServerError | 4 | The purchase request did not succeed because of a server error returned by the Microsoft Store. |
Remarks
The StorePurchaseResult.Status property returns these values.