Table of Contents

Class SshConnectionException

Namespace
Renci.SshNet.Common
Assembly
Renci.SshNet.dll

The exception that is thrown when connection was terminated.

public class SshConnectionException : SshException, ISerializable

Inheritance

Implements

Inherited Members

Constructors

SshConnectionException()

Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.

public SshConnectionException()

SshConnectionException(string)

Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.

public SshConnectionException(string message)

Parameters

message string

The message.

SshConnectionException(string, DisconnectReason)

Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.

public SshConnectionException(string message, DisconnectReason disconnectReasonCode)

Parameters

message string

The message.

disconnectReasonCode DisconnectReason

The disconnect reason code.

SshConnectionException(string, Exception)

Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.

public SshConnectionException(string message, Exception inner)

Parameters

message string

The message.

inner Exception

The inner.

SshConnectionException(string, DisconnectReason, Exception)

Initializes a new instance of the Renci.SshNet.Common.SshConnectionException class.

public SshConnectionException(string message, DisconnectReason disconnectReasonCode, Exception inner)

Parameters

message string

The message.

disconnectReasonCode DisconnectReason

The disconnect reason code.

inner Exception

The inner.

Properties

DisconnectReason

Gets the disconnect reason if provided by the server or client. Otherwise None.

public DisconnectReason DisconnectReason { get; }

Property Value

DisconnectReason