System.Net.SecureOnPassword.SecureOnPassword C# (CSharp) Method

SecureOnPassword() public method

Initializes a new instance of SecureOnPassword with the given password.
is null. The length of the array password is not 6.
public SecureOnPassword ( byte password )
password byte The password as array.
        public SecureOnPassword(byte[] password)
        {
            if (password == null)
                throw new ArgumentNullException(nameof(password));
            if (password.Length != 6)
                throw new ArgumentException(Localization.ArgumentExceptionInvalidPasswordLength);
            _password = password;
        }

Same methods

SecureOnPassword::SecureOnPassword ( string password )
SecureOnPassword::SecureOnPassword ( string password, Text encoding )