Back to product page

Disconnect method


Disconnects from remote server.

Type

Void

Syntax

  • C#
  • VB.NET
public Void Disconnect();

public Void Disconnect(Boolean Wait);
The Disconnect(Wait) syntax has these parts:
WaitWhen set to True, wodFtpDLX.NET will send 'BYE' command before disconnecting from the server.

public Sub Disconnect()

public Sub Disconnect(ByVal Wait As Boolean)
The Disconnect(Wait) syntax has these parts:
WaitWhen set to True, wodFtpDLX.NET will send 'BYE' command before disconnecting from the server.

Remarks

Disconnect method will close socket between wodFtpDLX.NET and remote server, thus breaking the connection. If Wait argument isn't specified, or is set to False, server will not be informed about disconnection (connection is closed brutally). If Wait is set, wodFtpDLX.NET will first send information about connection closure to server.

After calling Disconnect, you can set new parameters and issue Connect method again.

Platforms

Windows