Dart.Ssh Namespace > SshConnection Class : HostKey Event |
'Declaration Public Event HostKey As SshConnection.HostKeyEventHandler
'Usage Dim instance As SshConnection Dim handler As SshConnection.HostKeyEventHandler AddHandler instance.HostKey, handler
public event SshConnection.HostKeyEventHandler HostKey
public: __event SshConnection.HostKeyEventHandler* HostKey
public: event SshConnection.HostKeyEventHandler^ HostKey
The event handler receives an argument of type HostKeyEventArgs containing data related to this event. The following HostKeyEventArgs properties provide information specific to this event.
Property | Description |
---|---|
HostKey | Gets the host key being used by the SSH server. |
HostKeyAlgorithm | Gets the host key algorithm being used. |
Verified | Gets and sets a value that indicates the application has verified the host key. |
Provides an opportunity for the client to verify the server, for example, using Domain Name System Security (DNSSEC) (see RFC 4255).
The HostKeyEventArgs.Verified property must be set to true to continue.
See the ComponentBase.SynchronizingObject property for important information on updating UI controls from within this event.