共用方式為


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

欄位

名稱 Description
NetworkError 2

要求因為網路連線錯誤而失敗。

NoStoreAccount 1

要求失敗,因為指定的使用者沒有與目前裝置上的 Store 相關聯的 Microsoft 帳戶。

ServerError 3

要求因為伺服器錯誤而失敗。

Succeeded 0

要求成功。

備註

GetEntitlementResult.Status屬性會傳回其中一個GetEntitlementStatus值。

適用於