NTAccount NTAccount NTAccount NTAccount Class

Definition

Represents a user or group account.

public ref class NTAccount sealed : System::Security::Principal::IdentityReference
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class NTAccount : System.Security.Principal.IdentityReference
type NTAccount = class
    inherit IdentityReference
Public NotInheritable Class NTAccount
Inherits IdentityReference
Inheritance
Attributes

Constructors

NTAccount(String) NTAccount(String) NTAccount(String) NTAccount(String)

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

NTAccount(String, String) NTAccount(String, String) NTAccount(String, String) NTAccount(String, String)

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

Properties

Value Value Value Value

Returns an uppercase string representation of this NTAccount object.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

GetHashCode() GetHashCode() GetHashCode() 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.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsValidTargetType(Type) IsValidTargetType(Type) IsValidTargetType(Type) IsValidTargetType(Type)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

Translate(Type) Translate(Type) Translate(Type) Translate(Type)

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

Operators

Equality(NTAccount, NTAccount) Equality(NTAccount, NTAccount) Equality(NTAccount, NTAccount) Equality(NTAccount, NTAccount)

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 null.

Inequality(NTAccount, NTAccount) Inequality(NTAccount, NTAccount) Inequality(NTAccount, NTAccount) Inequality(NTAccount, NTAccount)

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 null and the other is not.

Applies to