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
Description
Gets disconnect description.
public string Description { get; }
Property Value
Language
Gets message language.
public string Language { get; }
Property Value
MessageName
Gets the message name as defined in RFC 4250.
public override string MessageName { get; }
Property Value
MessageNumber
Gets the message number as defined in RFC 4250.
public override byte MessageNumber { get; }
Property Value
ReasonCode
Gets disconnect reason code.
public DisconnectReason ReasonCode { get; }
Property Value
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()