NTAccount Class
.NET Framework 4.5
Represents a user or group account.
Namespace:
System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)
The NTAccount type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | NTAccount(String) | Initializes a new instance of the NTAccount class by using the specified name. |
![]() | NTAccount(String, String) | Initializes a new instance of the NTAccount class by using the specified domain name and account name. |
| Name | Description | |
|---|---|---|
![]() | Value | Returns an uppercase string representation of this NTAccount object. (Overrides IdentityReference.Value.) |
| Name | Description | |
|---|---|---|
![]() | Equals | Returns a value that indicates whether this NTAccount object is equal to a specified object. (Overrides IdentityReference.Equals(Object).) |
![]() | GetHashCode | Serves as a hash function for the current NTAccount object. The GetHashCode method is suitable for hashing algorithms and data structures like a hash table. (Overrides IdentityReference.GetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsValidTargetType | Returns a value that indicates whether the specified type is a valid translation type for the NTAccount class. (Overrides IdentityReference.IsValidTargetType(Type).) |
![]() | ToString | Returns the account name, in Domain\Account format, for the account represented by the NTAccount object. (Overrides IdentityReference.ToString.) |
![]() | Translate | Translates the account name represented by the NTAccount object into another IdentityReference-derived type. (Overrides IdentityReference.Translate(Type).) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Compares two NTAccount objects to determine whether they are equal. They are considered equal if they have the same canonical name representation as the one returned by the Value property or if they are both Nothing. |
![]() ![]() | Inequality | Compares two NTAccount objects to determine whether they are not equal. They are considered not equal if they have different canonical name representations than the one returned by the Value property or if one of the objects is Nothing and the other is not. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.gif?cs-save-lang=1&cs-lang=vb)
.gif?cs-save-lang=1&cs-lang=vb)
.gif?cs-save-lang=1&cs-lang=vb)
.gif?cs-save-lang=1&cs-lang=vb)