System.Security.Principal.NTAccount Members

The members of System.Security.Principal.NTAccount are listed below.

See Also: Inherited members from System.Security.Principal.IdentityReference

Public Constructors

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

Initializes a new instance of the System.Security.Principal.NTAccount class by using the specified domain name and account name.

Public Properties

[read-only]
override
Valuestring.

Returns an uppercase string representation of this System.Security.Principal.NTAccount object.

Public Methods

override
Equals(object) : bool

Returns a value that indicates whether this System.Security.Principal.NTAccount object is equal to a specified object.

override
GetHashCode() : int

Serves as a hash function for the current System.Security.Principal.NTAccount object. The NTAccount.GetHashCode method is suitable for hashing algorithms and data structures like a hash table.

override
IsValidTargetType(Type) : bool

Returns a value that indicates whether the specified type is a valid translation type for the System.Security.Principal.NTAccount class.

override
ToString() : string

Returns the account name, in Domain\Account format, for the account represented by the System.Security.Principal.NTAccount object.

override
Translate(Type) : IdentityReference

Translates the account name represented by the System.Security.Principal.NTAccount object into another System.Security.Principal.IdentityReference-derived type.

Public Operators

static
Equality(NTAccount, NTAccount)

Compares two System.Security.Principal.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 NTAccount.Value property or if they are both null.

static
Inequality(NTAccount, NTAccount)

Compares two System.Security.Principal.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 NTAccount.Value property or if one of the objects is null and the other is not.