Table of Contents

Class DisconnectMessage

Namespace
Renci.SshNet.Messages.Transport
Assembly
Renci.SshNet.dll

Represents SSH_MSG_DISCONNECT message.

public class DisconnectMessage : Message, IKeyExchangedAllowed

Inheritance

Implements

Inherited Members

Constructors

DisconnectMessage()

Initializes a new instance of the Renci.SshNet.Messages.Transport.DisconnectMessage class.

public DisconnectMessage()

DisconnectMessage(DisconnectReason, string)

Initializes a new instance of the Renci.SshNet.Messages.Transport.DisconnectMessage class.

public DisconnectMessage(DisconnectReason reasonCode, string message)

Parameters

reasonCode DisconnectReason

The reason code.

message string

The message.

Properties

BufferCapacity

Gets the size of the message in bytes.

protected override int BufferCapacity { get; }

Property Value

int

Description

Gets disconnect description.

public string Description { get; }

Property Value

string

Language

Gets message language.

public string Language { get; }

Property Value

string

MessageName

Gets the message name as defined in RFC 4250.

public override string MessageName { get; }

Property Value

string

MessageNumber

Gets the message number as defined in RFC 4250.

public override byte MessageNumber { get; }

Property Value

byte

ReasonCode

Gets disconnect reason code.

public DisconnectReason ReasonCode { get; }

Property Value

DisconnectReason

Methods

LoadData()

Called when type specific data need to be loaded.

protected override void LoadData()

SaveData()

Called when type specific data need to be saved.

protected override void SaveData()