Mono Class Library: System Namespace

System.UnhandledExceptionEventHandler Delegate

Defines the shape of methods that handle the event that is raised by the system for uncaught exceptions. [Edit]
[System.Runtime.InteropServices.ComVisible(true)]
public delegate void UnhandledExceptionEventHandler (object sender, UnhandledExceptionEventArgs e)

Parameters

sender
The application domain that handled the AppDomain.UnhandledException event. [Edit]
e
A UnhandledExceptionEventArgs that contains the event data. [Edit]

Remarks

A UnhandledExceptionEventHandler instance can only be specified for the default application domain that is created by the system to execute an application. Specifying a UnhandledExceptionEventHandler for a AppDomain created by an application has no effect.

Note: A UnhandledExceptionEventHandler instance is used to specify methods that are invoked in response to exceptions that are not caught. To associate an instance of UnhandledExceptionEventHandler with an application domain, add the UnhandledExceptionEventHandler to the AppDomain.UnhandledException event. The methods referenced by the UnhandledExceptionEventHandler instance are invoked whenever an object, typically a Exception, is thrown and is not caught.

Note: For additional information about events, see Partitions I and II of the CLI Specification.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0