Bewerken

Delen via


PeerNearMe.Equals Method

Definition

Compares the PeerNearMe instance to the specified object.

Overloads

Equals(PeerNearMe)

Compares the PeerNearMe to the specified PeerNearMe instance.

Equals(Object)

Compares the PeerNearMe instance to the specified object.

Equals(Object, Object)

Determines whether the specified PeerNearMe instances are considered equal.

Equals(PeerNearMe)

Compares the PeerNearMe to the specified PeerNearMe instance.

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

Parameters

other
PeerNearMe

The PeerNearMe instance to test for equality.

Returns

true if the PeerNearMe instance provided has matching data; otherwise, false.

Implements

Exceptions

The other argument is null.

Applies to

Equals(Object)

Compares the PeerNearMe instance 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

Parameters

obj
Object

The object to test for equality.

Returns

true if the PeerNearMe instance provided has matching data; otherwise, false.

Exceptions

The PeerNearMe object has been disposed.

Applies to

Equals(Object, Object)

Determines whether the specified PeerNearMe 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

Parameters

objA
Object

The first PeerNearMe to compare.

objB
Object

The second PeerNearMe to compare.

Returns

true if the PeerNearMe instances provided have matching data; otherwise, false.

Applies to