Peer.Equals(Peer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs a case-sensitive comparison of the current Peer and the specified peer.
public:
virtual bool Equals(System::Net::PeerToPeer::Collaboration::Peer ^ other);
public bool Equals (System.Net.PeerToPeer.Collaboration.Peer other);
override this.Equals : System.Net.PeerToPeer.Collaboration.Peer -> bool
Public Function Equals (other As Peer) As Boolean
Parameters
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.