System.Security.Principal.NTAccount.NTAccount C# (CSharp) Method

NTAccount() public method

public NTAccount ( string name ) : System.ComponentModel
name string
return System.ComponentModel
        public NTAccount(string name)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            if (name.Length == 0)
            {
                throw new ArgumentException(SR.Argument_StringZeroLength, nameof(name));
            }

            if (name.Length > (MaximumDomainNameLength + 1 /* '\' */ + MaximumAccountNameLength))
            {
                throw new ArgumentException(SR.IdentityReference_AccountNameTooLong, nameof(name));
            }
            Contract.EndContractBlock();

            _name = name;
        }

Same methods

NTAccount::NTAccount ( string domainName, string accountName ) : System.ComponentModel