- The object that raised the event.
- A EventArgs instance that contains the event data.
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.