IdentityReference IdentityReference IdentityReference IdentityReference Class

Definition

Represents an identity and is the base class for the NTAccount and SecurityIdentifier classes. This class does not provide a public constructor, and therefore cannot be inherited.

public ref class IdentityReference abstract
[System.Runtime.InteropServices.ComVisible(false)]
public abstract class IdentityReference
type IdentityReference = class
Public MustInherit Class IdentityReference
Inheritance
IdentityReferenceIdentityReferenceIdentityReferenceIdentityReference
Derived
Attributes

Properties

Value Value Value Value

Gets the string value of the identity represented by the IdentityReference object.

Methods

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

Returns a value that indicates whether the specified object equals this instance of the IdentityReference class.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for IdentityReference. GetHashCode() is suitable for use in 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 IdentityReference class.

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

Creates a shallow copy of the current Object.

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

Returns the string representation of the identity represented by the IdentityReference object.

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

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

Operators

Equality(IdentityReference, IdentityReference) Equality(IdentityReference, IdentityReference) Equality(IdentityReference, IdentityReference) Equality(IdentityReference, IdentityReference)

Compares two IdentityReference 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(IdentityReference, IdentityReference) Inequality(IdentityReference, IdentityReference) Inequality(IdentityReference, IdentityReference) Inequality(IdentityReference, IdentityReference)

Compares two IdentityReference 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