SocketTools .NET Edition

FtpClient.OnTaskEndEventHandler Delegate

Represents the method that will handle the OnTaskEnd event.

[Visual Basic]
Public Delegate Sub FtpClient.OnTaskEndEventHandler( _
   ByVal sender As Object, _
   ByVal e As TaskEndEventArgs _
)
[C#]
public delegate void FtpClient.OnTaskEndEventHandler(
   object sender,
   TaskEndEventArgs e
);

Parameters

sender
The source of the event.
e
A TaskEndEventArgs object that contains the event data.

Remarks

When you create an OnTaskEndEventHandler 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, until you remove the delegate.

Note that the declaration of your event handler must have the same parameters as the OnTaskEndEventHandler delegate declaration.

This event handler will be invoked in the context of the worker thread that is managing the background task, not the thread that created an instance of the class. Because UI components should only be modified by the thread that created them, the event handler should never attempt to update the user interface directly.

Requirements

Namespace: SocketTools

Assembly: SocketTools.FtpClient (in SocketTools.FtpClient.dll)

Version: 12.0.3041.1380