DeactivationReason Enumeration

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)

public enum DeactivationReason
<object property="enumerationValue" .../>

Member nameDescription
UserActionThe user took an action that caused the application to be deactivated.
PowerSavingModeOnPower saving mode on the phone is active and the phone’s battery went below the minimum threshold.
ApplicationActionThe application performed an action that caused it to be terminated.
ResourcesUnavailableThe system does not have sufficient resources for the application to continue running.

Windows Phone OS

Supported in: 8.1, 8.0

© 2016 Microsoft