public delegate void EventHandler(object sender, EventArgs e);
This type implements ICloneable.
Defines the shape of methods that are called in response to an event.
- The object that raised the event.
- A EventArgs instance that contains the event data.
[Note: A EventHandler instance is used to specify the methods that are invoked in response to an event. To associate an instance of
EventHandlerwith an event, add the
EventHandlerinstance to the event. The methods referenced by the
EventHandlerinstance are invoked whenever the event is raised, until the
EventHandlerinstance 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.