Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.SSH
- Methods
- Properties
- AllocatePty
- Authentication
- Blocking
- Columns
- Command
- Compression
- DataOut
- DataReady
- Encryption
- EncryptionList
- ExitSignal
- ExitStatus
- FingerPrintType
- FIPS
- ForwardHost
- ForwardPort
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeyFowarding
- Login
- Password
- Port
- PrivateKey
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- Rows
- ShowStdErrorMessages
- State
- StripANSI
- Subsystem
- TerminalType
- Timeout
- Version
- Events
- How to get support?
Disconnect method
Disconnects from the server with a message.
Type
VoidSyntax
- C#
- VB.NET
public Void Disconnect();
public Void Disconnect(Boolean Force);
The Disconnect(Force) syntax has these parts:
public Void Disconnect(String Message);
The Disconnect(Message) syntax has these parts:
public Void Disconnect(Boolean Force);
The Disconnect(Force) syntax has these parts:
Force | Determines if connection is dropped immediately or QUIT command is sent to the server. |
public Void Disconnect(String Message);
The Disconnect(Message) syntax has these parts:
Message | Message that is sent to the server. |
public Sub Disconnect()
public Sub Disconnect(ByVal Force As Boolean)
The Disconnect(Force) syntax has these parts:
public Sub Disconnect(ByVal Message As String)
The Disconnect(Message) syntax has these parts:
public Sub Disconnect(ByVal Force As Boolean)
The Disconnect(Force) syntax has these parts:
Force | Determines if connection is dropped immediately or QUIT command is sent to the server. |
public Sub Disconnect(ByVal Message As String)
The Disconnect(Message) syntax has these parts:
Message | Message that is sent to the server. |
Remarks
Disconnect method will close socket between wodSSH.NET and the remote server, thus breaking the connection.After calling Disconnect, you can set new parameters and issue Connect method again.