DispatcherUnhandledExceptionFilterEventArgs.RequestCatch Property

Gets or sets whether the exception should be caught and the event handlers called.

Namespace: System.Windows.Threading
Assembly: WindowsBase (in windowsbase.dll)

public bool RequestCatch { get; set; }
/** @property */
public boolean get_RequestCatch ()

/** @property */
public void set_RequestCatch (boolean value)

public function get RequestCatch () : boolean

public function set RequestCatch (value : boolean)

Members of this class are either not typically used in XAML, or cannot be used in XAML.

Property Value

true if the UnhandledException should be raised; otherwise; false. The default value is true.

The UnhandledExceptionFilter event provides a means to not raise the UnhandledException event. The UnhandledException is raised first, and If RequestCatch on the DispatcherUnhandledExceptionFilterEventArgs is set to false, the UnhandledException event will not be raised.

A previous handler in the event multicast might have already set this property to false, indicating that the exception will not be caught. The "don't catch" behavior will override all others because it most likely means a debugging scenario.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0