This documentation is archived and is not being maintained.
NTAccount Class
Visual Studio 2010
Represents a user or group account.
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).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from 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).) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
