AppRestartFailureReason AppRestartFailureReason AppRestartFailureReason AppRestartFailureReason Enum

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Describes the reasons why an app could fail a request to restart.

public : enum class AppRestartFailureReasonpublic enum AppRestartFailureReasonPublic Enum AppRestartFailureReason// You can use this enum in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Fields

InvalidUser InvalidUser InvalidUser InvalidUser

Prerelease. Could not restart for the specified user.

NotInForeground NotInForeground NotInForeground NotInForeground

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

Other Other Other Other

Prerelease. Unspecified failure.

RestartPending RestartPending RestartPending RestartPending

Prerelease. A restart is already in progress.