UnhandledExceptionEventArgs.Handled property

Applies to Windows and Windows Phone

Gets or sets a value that indicates whether the exception is handled.

Syntax


public bool Handled { get; set; }

Property value

Type: System.Boolean [.NET] | Platform::Boolean [C++]

true to mark the exception as handled, which indicates that the event system should not process it further; otherwise, false.

Remarks

Do not routinely set this value to true, that is not always safe and may not guarantee that the app wouldn't terminate anyways. For more info, see Exception handling for Windows Store apps in C# or Visual Basic and Remarks in UnhandledException.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

UnhandledExceptionEventArgs
UnhandledException
Exception handling for Windows Store apps in C# or Visual Basic
Exceptions (C++/CX)

 

 

Show:
© 2014 Microsoft