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
DisconnectMessage
Implements
Inherited Members

Constructors

DisconnectMessage()

Initializes a new instance of the DisconnectMessage class.

public DisconnectMessage()

DisconnectMessage(DisconnectReason, string)

Initializes a new instance of the 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

The size of the messages in bytes.

Description

Gets disconnect description.

public string Description { get; }

Property Value

string

Language

Gets message language.

public string Language { get; }

Property Value

string

MessageName

public override string MessageName { get; }

Property Value

string

MessageNumber

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()