An NDoc Documented Class Library |

# FTPConnection.InvokeEventHandler Method (Boolean, Boolean, Delegate, Object, EventArgs)

Invokes the given event-handler.

protected virtual void InvokeEventHandler(
bool preferGuiThread,
bool permitAsync,
Delegate eventHandler,
object sender,
EventArgs e
);

#### Parameters

preferGuiThread
  If `true` then an attempt will be made to run on the GUI thread
permitAsync
  Allow delegate to be called asynchronously.
eventHandler
  Event-handler to invoke.
sender
  Sender of the event.
e
  Event arguments.

#### See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace | FTPConnection.InvokeEventHandler Overload List