GetEntitlementStatus 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义使用 GetFreeDeviceEntitlementAsync、GetFreeUserEntitlementAsync 或 GetFreeUserEntitlementForUserAsync 方法授予免费权利的请求的可能结果。
public enum class GetEntitlementStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum class GetEntitlementStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum GetEntitlementStatus
var value = Windows.ApplicationModel.Store.Preview.InstallControl.GetEntitlementStatus.succeeded
Public Enum GetEntitlementStatus
- 继承
-
GetEntitlementStatus
- 属性
Windows 要求
设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|
应用功能 |
runFullTrust
|
字段
名称 | 值 | 说明 |
---|---|---|
NetworkError | 2 | 由于网络连接错误,请求失败。 |
NoStoreAccount | 1 | 请求失败,因为指定的用户没有与当前设备上的应用商店关联的 Microsoft 帐户。 |
ServerError | 3 | 由于服务器错误,请求失败。 |
Succeeded | 0 | 请求成功。 |
注解
GetEntitlementResult.Status 属性返回 GetEntitlementStatus 值之一。