In This Article

BarCommandLinkEventHandler Delegate

Represents the method that will handle the BarCommandLink or BarCommand events.

public delegate void BarCommandLinkEventHandler(object sender, BarCommandLinkEventArgs e)

Parameters

Name Type Description
sender object

Sender of the event.

e BarCommandLinkEventArgs

A BarCommandLinkEventArgs containing event data.

Remarks

When you create a BarCommandLinkEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

Constructors

BarCommandLinkEventHandler(object, IntPtr)

public BarCommandLinkEventHandler(object @object, IntPtr method)
Parameter Type Description
object object
method IntPtr

Methods

BeginInvoke(object, BarCommandLinkEventArgs, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(object sender, BarCommandLinkEventArgs e, AsyncCallback callback, object @object)
Parameter Type Description
sender object
e BarCommandLinkEventArgs
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)
Parameter Type Description
result IAsyncResult

Invoke(object, BarCommandLinkEventArgs)

public virtual void Invoke(object sender, BarCommandLinkEventArgs e)
Parameter Type Description
sender object
e BarCommandLinkEventArgs