Peer.Equals Method (Peer)

 

Performs a case-sensitive comparison of the current Peer and the specified peer.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

public bool Equals(
	Peer other
)

Parameters

other
Type: System.Net.PeerToPeer.Collaboration.Peer

A Peer instance to compare to this instance.

Return Value

Type: System.Boolean

Returns true if the supplied Peer instance has the same PeerEndPoints as this peer instance, otherwise false. This method also returns false if the peer parameter is null.

Two peers are considered equal if they have the same endpoint collection, regardless of the values in their PeerName properties. Usage scenarios do not involve this class directly, but rather the derived PeerNearMe or the PeerContact classes.

.NET Framework
Available since 3.5
Return to top
Show: