DeactivatedEventArgs.Reason Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Indicates the reason that the application was deactivated.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public ReadOnly Property Reason As DeactivationReason
public DeactivationReason Reason { get; }

Property Value

Type: Microsoft.Phone.Shell..::.DeactivationReason
The reason the application was deactivated.

Remarks

Applications can use the Reason property to determine why the application was deactivated and, when appropriate, alert the user with a ShellToast.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

DeactivatedEventArgs Class

Microsoft.Phone.Shell Namespace