Peer.Equals(Peer) Method

Definition

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

C#
public bool Equals(System.Net.PeerToPeer.Collaboration.Peer other);

Parameters

other
Peer

A Peer instance to compare to this instance.

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.

Implements

Remarks

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.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also