Back to product page

DoneEvent event


Fires when wodFtpDLX.NET finishes some method.

Syntax

  • C#
  • VB.NET
delegate void DoneDelegate(object Sender,FtpDoneArgs Args);
The DoneEvent(Args.Description,Args.Error) syntax has these parts:
Args.DescriptionString. Description of the error.
Args.ErrorException. Error that occurred, if any.

Delegate Sub DoneDelegate(ByVal Sender As Object, ByVal Args As FtpDoneArgs)
The DoneEvent(Args.Description,Args.Error) syntax has these parts:
Args.DescriptionString. Description of the error.
Args.ErrorException. Error that occurred, if any.

Remarks

For each method issued by the user (MakeDir, ListDir, DeleteFile...) this event will be fired to signalize that method has completed, and that it was (successfully) executed. If error occurred, Args.Error will contain nonzero value that determines the error. In such case, Args.Description will contain string representation of the error - if it was provided by the server, your OS or the wodFtpDLX.NET itself.

You can use this event for automated requests. As soon as you initiate some method, and this event is fired, you can initiate new method immediately.

Platforms

Windows