PeerObject.Equals 方法

定義

PeerObject 與指定的物件相比較。Compares the PeerObject to the specified object.

多載

Equals(Object)

PeerObject 與指定的物件相比較。Compares the PeerObject to the specified object.

Equals(Object, Object)

判斷指定的 PeerObject 執行個體是否視為相等。Determines whether the specified PeerObject instances are considered equal.

Equals(PeerObject)

比較 PeerObject 和指定的 PeerObject 執行個體。Compares a PeerObject to the specified PeerObject instance.

Equals(Object)

PeerObject 與指定的物件相比較。Compares the PeerObject to the specified object.

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

參數

obj
Object

要測試是否相等的物件。The object to test for equality.

傳回

Boolean

objPeerObject 執行個體,且 PeerObject 執行個體有相符的資料,即為 true;否則為 falsetrue if obj is a PeerObject instance, and the PeerObject instances have matching data; otherwise, false.

例外狀況

已處置 obj 所指定的物件。The object specified by obj has been disposed.

Equals(Object, Object)

判斷指定的 PeerObject 執行個體是否視為相等。Determines whether the specified PeerObject instances are considered equal.

public:
 static bool Equals(System::Object ^ objA, System::Object ^ objB);
public static bool Equals (object objA, object objB);
static member Equals : obj * obj -> bool
Public Shared Function Equals (objA As Object, objB As Object) As Boolean

參數

objA
Object

要比較的第一個 PeerObjectThe first PeerObject to compare.

objB
Object

要比較的第二個 PeerObjectThe second PeerObject to compare.

傳回

Boolean

若提供的 PeerObject 執行個體有相符的資料,即為 true;否則為 falsetrue if the PeerObject instances provided have matching data; otherwise, false.

Equals(PeerObject)

比較 PeerObject 和指定的 PeerObject 執行個體。Compares a PeerObject to the specified PeerObject instance.

public:
 virtual bool Equals(System::Net::PeerToPeer::Collaboration::PeerObject ^ other);
public bool Equals (System.Net.PeerToPeer.Collaboration.PeerObject other);
override this.Equals : System.Net.PeerToPeer.Collaboration.PeerObject -> bool
Public Function Equals (other As PeerObject) As Boolean

參數

other
PeerObject

要測試是否相等的 PeerObject 執行個體。The PeerObject instance to test for equality.

傳回

Boolean

若提供的 PeerObject 執行個體有相符的資料,即為 true;否則為 falsetrue if the PeerObject instance provided has matching data; otherwise, false.

實作

例外狀況

已處置 other 所指定的 PeerObject 執行個體。The PeerObject instance specified by other has been disposed.

適用於