Jaa


AppRestartFailureReason Enum

Definition

Describes the reasons why an app could fail a request to restart.

public enum class AppRestartFailureReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
enum class AppRestartFailureReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
public enum AppRestartFailureReason
var value = Windows.ApplicationModel.Core.AppRestartFailureReason.restartPending
Public Enum AppRestartFailureReason
Inheritance
AppRestartFailureReason
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Fields

Name Value Description
RestartPending 0

A restart is already in progress.

NotInForeground 1

An app must be visible and in the foreground when it calls the restart API.

InvalidUser 2

Could not restart for the specified user.

Other 3

Unspecified failure.

Applies to