Renci.SshNet.AuthenticationMethod.AuthenticationMethod C# (CSharp) Method

AuthenticationMethod() protected method

Initializes a new instance of the AuthenticationMethod class.
is whitespace or null.
protected AuthenticationMethod ( string username ) : System
username string The username.
return System
        protected AuthenticationMethod(string username)
        {
            if (username.IsNullOrWhiteSpace())
                throw new ArgumentException("username");

            Username = username;
        }