GetEntitlementStatus 枚举

定义

定义使用 GetFreeDeviceEntitlementAsync、GetFreeUserEntitlementAsyncGetFreeUserEntitlementForUserAsync 方法授予免费权利的请求的可能结果。

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 值之一。

适用于