DeactivationReason Enumeration
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Lists the reasons why an application was terminated. This is used by the Reason property of the DeactivatedEventArgs object when the Deactivated event is raised.
Namespace: Microsoft.Phone.Shell
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Enumeration DeactivationReason
public enum DeactivationReason
<object property="enumerationValue" .../>
Members
Member name | Description | |
---|---|---|
UserAction | The user took an action that caused the application to be deactivated. | |
PowerSavingModeOn | Power saving mode on the phone is active and the phone’s battery went below the minimum threshold. | |
ApplicationAction | The application performed an action that caused it to be terminated. | |
ResourcesUnavailable | The system does not have sufficient resources for the application to continue running. |
Version Information
Windows Phone OS
Supported in: 8.1, 8.0