NTAccount Constructor (String)

 

Initializes a new instance of the NTAccount class by using the specified name.

Namespace:   System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

public NTAccount(
	string name
)

Parameters

name
Type: System.String

The name used to create the NTAccount object. This parameter cannot be null or an empty string.

Exception Condition
ArgumentNullException

name is null.

ArgumentException

name is an empty string.

-or-

name is too long.

The specified name is not required to correspond to an existing account or group, but translation into other IdentityReference-derived types will not be possible unless the account or group does exist.

.NET Framework
Available since 2.0
Return to top
Show: