public delegate void EventHandler(object sender, EventArgs e);
Object
Delegate
EventHandlerThis type implements ICloneable.
mscorlib
BCL
Defines the shape of methods that are called in response to an event.
- sender
- The object that raised the event.
- e
- 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 ofEventHandler
with an event, add theEventHandler
instance to the event. The methods referenced by theEventHandler
instance are invoked whenever the event is raised, until theEventHandler
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.
]
[Note: For additional information about events, see Partitions I and II of the CLI Specification. ]
System Namespace