IdentityReference 類別

定義

表示識別 (Identity),且為 NTAccountSecurityIdentifier 類別的基底類別。 這個類別不提供公用建構函式 (Constructor),因此無法繼承。

public ref class IdentityReference abstract
public abstract class IdentityReference
[System.Runtime.InteropServices.ComVisible(false)]
public abstract class IdentityReference
type IdentityReference = class
[<System.Runtime.InteropServices.ComVisible(false)>]
type IdentityReference = class
Public MustInherit Class IdentityReference
繼承
IdentityReference
衍生
屬性

屬性

Value

取得由 IdentityReference 物件表示的識別之字串值。

方法

Equals(Object)

傳回值,指出指定物件是否等於此 IdentityReference 類別執行個體。

GetHashCode()

作為 IdentityReference 的雜湊函式。 GetHashCode() 適用於雜湊演算法和雜湊資料表這類的資料結構。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IsValidTargetType(Type)

傳回值,指出指定型別是否為 IdentityReference 類別的有效轉譯型別。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回由 IdentityReference 物件表示的識別之字串表示。

Translate(Type)

IdentityReference 物件所表示的帳戶名稱轉譯為另一個 IdentityReference 衍生型別。

運算子

Equality(IdentityReference, IdentityReference)

比較兩個 IdentityReference 物件,判斷它們是否相等。 如果它們的正式名稱表示與 Value 屬性所傳回的相同,或兩者都是 null,則會將它們視為相等。

Inequality(IdentityReference, IdentityReference)

比較兩個 IdentityReference 物件,判斷它們是否不相等。 如果它們的正式名稱表示與 Value 屬性所傳回的不同,或其中一個物件為 null 而另一個不是,則會將它們視為不相等。

適用於