Back to product page

Disconnect method


Disconnects from the server, nicely.

Type

Void

Syntax

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

public Void Disconnect(Boolean Force);
The Disconnect(Force) syntax has these parts:
ForceDetermines if connection is dropped immediately or disconnection-command is sent to the server.

public Void Disconnect(String Message);
The Disconnect(Message) syntax has these parts:
MessageMessage that is sent to the server.

public Sub Disconnect()

public Sub Disconnect(ByVal Force As Boolean)
The Disconnect(Force) syntax has these parts:
ForceDetermines if connection is dropped immediately or disconnection-command is sent to the server.

public Sub Disconnect(ByVal Message As String)
The Disconnect(Message) syntax has these parts:
MessageMessage that is sent to the server.

Remarks

Disconnect method will close socket between wodSFTP.NET and remote server, thus breaking the connection and any ongoing transfers.

Platforms

Windows