Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ NTAccount() [1/2]

System.Security.Principal.NTAccount.NTAccount ( string domainName,
string accountName )
inline

Definition at line 14 of file NTAccount.cs.

15 {
16 if (accountName == null)
17 {
18 throw new ArgumentNullException("accountName");
19 }
20 if (accountName.Length == 0)
21 {
22 throw new ArgumentException(System.SR.Argument_StringZeroLength, "accountName");
23 }
24 if (accountName.Length > 256)
25 {
27 }
28 if (domainName != null && domainName.Length > 255)
29 {
31 }
32 if (domainName == null || domainName.Length == 0)
33 {
34 _name = accountName;
35 }
36 else
37 {
38 _name = domainName + "\\" + accountName;
39 }
40 }
static string IdentityReference_AccountNameTooLong
Definition SR.cs:34
static string Argument_StringZeroLength
Definition SR.cs:882
static string IdentityReference_DomainNameTooLong
Definition SR.cs:38
Definition SR.cs:7

References System.Security.Principal.NTAccount._name, System.SR.Argument_StringZeroLength, System.SR.IdentityReference_AccountNameTooLong, and System.SR.IdentityReference_DomainNameTooLong.

Referenced by System.Security.Principal.NTAccount.Equals().