Renci.SshNet.AuthenticationMethod.AuthenticationMethod C# (CSharp) Méthode

AuthenticationMethod() protected méthode

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

            Username = username;
        }