Mono Class Library: System Namespace

System.EventHandler Delegate

Defines the shape of methods that are called in response to an event. [Edit]
[System.Runtime.InteropServices.ComVisible(true)]
public delegate void EventHandler (object sender, EventArgs e)

Parameters

sender
The object that raised the event. [Edit]
e
A EventArgs instance that contains the event data. [Edit]

Remarks

Note:

A EventHandler instance is used to specify the methods that are invoked in response to an event. To associate an instance of EventHandler with an event, add the EventHandler instance to the event. The methods referenced by the EventHandler instance are invoked whenever the event is raised, until the EventHandler instance is removed from the event.

If the event does not generate data, applications use the base class EventArgs for the event data object e. For more information, see EventArgs. 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