Delegate EventHandler<TEventArgs>
- Namespace
- System
- Assembly
- mscorlib.dll
Represents the method that will handle an event when the event provides data.
public delegate void EventHandler<TEventArgs>(object sender, TEventArgs e)
Parameters
sender
objectThe source of the event.
e
TEventArgsAn object that contains the event data.
Type Parameters
TEventArgs
The type of the event data generated by the event.
- Extension Methods
Constructors
EventHandler(object, IntPtr)
public EventHandler(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(object, TEventArgs, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(object sender, TEventArgs e, AsyncCallback callback, object @object)
Parameters
sender
objecte
TEventArgscallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Invoke(object, TEventArgs)
public virtual void Invoke(object sender, TEventArgs e)
Parameters
sender
objecte
TEventArgs