IdentityReference Class

Definition

表示識別 (Identity),且為 NTAccountSecurityIdentifier 類別的基底類別。Represents an identity and is the base class for the NTAccount and SecurityIdentifier classes. 這個類別不提供公用建構函式 (Constructor),因此無法繼承。This class does not provide a public constructor, and therefore cannot be inherited.

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

Properties

Value

取得由 IdentityReference 物件表示的識別之字串值。Gets the string value of the identity represented by the IdentityReference object.

Methods

Equals(Object)

傳回值,指出指定物件是否等於此 IdentityReference 類別執行個體。Returns a value that indicates whether the specified object equals this instance of the IdentityReference class.

GetHashCode()

作為 IdentityReference 的雜湊函式。Serves as a hash function for IdentityReference. GetHashCode() 適用於雜湊演算法和雜湊資料表這類的資料結構。GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
IsValidTargetType(Type)

傳回值,指出指定型別是否為 IdentityReference 類別的有效轉譯型別。Returns a value that indicates whether the specified type is a valid translation type for the IdentityReference class.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

傳回由 IdentityReference 物件表示的識別之字串表示。Returns the string representation of the identity represented by the IdentityReference object.

Translate(Type)

IdentityReference 物件所表示的帳戶名稱轉譯為另一個 IdentityReference 衍生型別。Translates the account name represented by the IdentityReference object into another IdentityReference-derived type.

Operators

Equality(IdentityReference, IdentityReference)

比較兩個 IdentityReference 物件,判斷它們是否相等。Compares two IdentityReference objects to determine whether they are equal. 如果它們的正式名稱表示與 Value 屬性所傳回的相同,或兩者都是 null,則會將它們視為相等。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)

比較兩個 IdentityReference 物件,判斷它們是否不相等。Compares two IdentityReference objects to determine whether they are not equal. 如果它們的正式名稱表示與 Value 屬性所傳回的不同,或其中一個物件為 null 而另一個不是,則會將它們視為不相等。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