NTAccount Constructor (String)
.NET Framework (current version)
Initializes a new instance of the NTAccount class by using the specified name.
Assembly: mscorlib (in mscorlib.dll)
| 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
Available since 2.0
Show: