SecurityIdentifier.Equals 方法

定義

傳回值,指出這個 SecurityIdentifier 物件是否等於指定的物件。Returns a value that indicates whether this SecurityIdentifier object is equal to a specified object.

多載

Equals(Object)

傳回值,指出這個 SecurityIdentifier 物件是否等於指定的物件。Returns a value that indicates whether this SecurityIdentifier object is equal to a specified object.

Equals(SecurityIdentifier)

指出指定的 SecurityIdentifier 物件是否等於目前的 SecurityIdentifier 物件。Indicates whether the specified SecurityIdentifier object is equal to the current SecurityIdentifier object.

Equals(Object)

傳回值,指出這個 SecurityIdentifier 物件是否等於指定的物件。Returns a value that indicates whether this SecurityIdentifier object is equal to a specified object.

public:
 override bool Equals(System::Object ^ o);
public override bool Equals (object o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean

參數

o
Object

與這個 SecurityIdentifier 物件相比較的物件,或 nullAn object to compare with this SecurityIdentifier object, or null.

傳回

如果 true 是與這個 o 物件具有相同基礎型別和值的物件則為 SecurityIdentifier,否則為 falsetrue if o is an object with the same underlying type and value as this SecurityIdentifier object; otherwise, false.

Equals(SecurityIdentifier)

指出指定的 SecurityIdentifier 物件是否等於目前的 SecurityIdentifier 物件。Indicates whether the specified SecurityIdentifier object is equal to the current SecurityIdentifier object.

public:
 bool Equals(System::Security::Principal::SecurityIdentifier ^ sid);
public bool Equals (System.Security.Principal.SecurityIdentifier sid);
override this.Equals : System.Security.Principal.SecurityIdentifier -> bool
Public Function Equals (sid As SecurityIdentifier) As Boolean

參數

sid
SecurityIdentifier

要與目前物件比較的物件。The object to compare with the current object.

傳回

如果 true 的值和目前 sid 物件的值相等則為 SecurityIdentifiertrue if the value of sid is equal to the value of the current SecurityIdentifier object.

適用於