PeerEndPoint.Equals 方法

定義

指定 PeerEndPoint 物件的內容是否等於另一個物件的內容。Specifies if the content of the PeerEndPoint object is equivalent to the content of another object.

多載

Equals(Object, Object)

判斷指定的 PeerEndPoint 物件是否視為相等。Determines whether the specified PeerEndPoint objects are considered equal.

Equals(Object)

比較 PeerEndPoint 和指定的 ObjectCompares the PeerEndPoint to the specified Object.

Equals(PeerEndPoint)

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

Equals(Object, Object)

判斷指定的 PeerEndPoint 物件是否視為相等。Determines whether the specified PeerEndPoint objects 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

要比較的第一個 PeerEndPointThe first PeerEndPoint to compare.

objB
Object

要比較的第二個 PeerEndPointThe second PeerEndPoint to compare.

傳回

Boolean

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

Equals(Object)

比較 PeerEndPoint 和指定的 ObjectCompares the PeerEndPoint 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

要測試是否相等的 ObjectThe Object to test for equality.

傳回

Boolean

如果 PeerEndPoint 等於指定的物件執行個體,即為 true;否則為 falsetrue if the PeerEndPoint is equal to the specified object instance; otherwise, false.

Equals(PeerEndPoint)

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

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

參數

other
PeerEndPoint

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

傳回

Boolean

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

實作

例外狀況

PeerEndPoint 物件已被處置。This PeerEndPoint object has been disposed.

適用於