System.EventHandler Delegate

public delegate void EventHandler(object sender, EventArgs e);

Base Types

Object
  Delegate
    EventHandler

This type implements ICloneable.

Assembly

mscorlib

Library

BCL

Summary

Defines the shape of methods that are called in response to an event.

Parameters

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

Description

[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.

]

See Also

System Namespace