AppRestartFailureReason AppRestartFailureReason AppRestartFailureReason AppRestartFailureReason AppRestartFailureReason Enum

Definition

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

public : enum class AppRestartFailureReason
enum class winrt::Windows::ApplicationModel::Core::AppRestartFailureReason : int32_t
public enum AppRestartFailureReason
Public Enum AppRestartFailureReason
var value = Windows.ApplicationModel.Core.AppRestartFailureReason.invalidUser;
Attributes
Windows 10 requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Fields

InvalidUser InvalidUser InvalidUser InvalidUser InvalidUser 2

Could not restart for the specified user.

NotInForeground NotInForeground NotInForeground NotInForeground NotInForeground 1

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

Other Other Other Other Other 3

Unspecified failure.

RestartPending RestartPending RestartPending RestartPending RestartPending 0

A restart is already in progress.