UnhandledExceptionHandler Delegate

Definition

Delegate for possibly handling an exception in the application.

public delegate bool UnhandledExceptionHandler(System::Object ^ sender, Exception ^ ex);
public delegate bool UnhandledExceptionHandler(object sender, Exception ex);
Public Delegate Function UnhandledExceptionHandler(sender As Object, ex As Exception) As Boolean 

Parameters

sender
Object

The 'this' pointer value when the exception was caught.

ex
Exception

Exception

Return Value

True if the exception was handled. A return value of false will cause the exception to be re-thrown.

Applies to