CommandEventHandler Delegate
Represents the method that will handle Command events.
public delegate void CommandEventHandler(object sender, CommandEventArgs e)
Parameters
When you create a CommandEventHandler
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
public CommandEventHandler(object @object, IntPtr method)
Methods
public virtual IAsyncResult BeginInvoke(object sender, CommandEventArgs e, AsyncCallback callback, object @object)
Returns
- IAsyncResult
public virtual void EndInvoke(IAsyncResult result)
public virtual void Invoke(object sender, CommandEventArgs e)