Back to product page

DisconnectedEvent event


Fired when wodSFTP.NET disconnects from the server.

Syntax

  • C#
  • VB.NET
delegate void DisconnectedDelegate(object Sender, ConnectedArgs Args);
The DisconnectedEvent(Args.Error) syntax has these parts:
Args.ErrorException. Error that occurred during connection, if NULL if no error occurred.

Delegate Sub DisconnectedDelegate(ByVal Sender As Object, ByVal Args As WeOnlyDo.Client.SFTP.ConnectedArgs)
The DisconnectedEvent(Args.Error) syntax has these parts:
Args.ErrorException. Error that occurred during connection, if NULL if no error occurred.

Remarks

After this event is fired, you are free to set up wodSFTP properties again and issue Connect again. If reason for disconnection was due to timeout or network conditions (or just server disconnected you for whatever reason), you should check arguments provided by DisconnectedEvent, contained in ConnectedArgs object.

Platforms

Windows