Xceed .NET Libraries Documentation
Xceed.SSH.Client Assembly / Xceed.SSH.Client Namespace / HostKeyReceivedEventArgs Class / HostKeyLength Property


In This Topic
    HostKeyLength Property (HostKeyReceivedEventArgs)
    In This Topic
    Gets a System.Int32 that represents the length, in bits, of the public key that the raw host key data represents.
    Syntax
    'Declaration
     
    Public ReadOnly Property HostKeyLength As Integer
    'Usage
     
    Dim instance As HostKeyReceivedEventArgs
    Dim value As Integer
     
    value = instance.HostKeyLength
    public int HostKeyLength {get;}
    Remarks
    The key length is computed from the host key data. If the value cannot be computed because of invalid data or a key size that is not supported, the property will return '-1'.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also