Table of Contents

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 object

The source of the event.

e TEventArgs

An 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

object object
method IntPtr

Methods

BeginInvoke(object, TEventArgs, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(object sender, TEventArgs e, AsyncCallback callback, object @object)

Parameters

sender object
e TEventArgs
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(object, TEventArgs)

public virtual void Invoke(object sender, TEventArgs e)

Parameters

sender object
e TEventArgs