PeerObject.Equals Method

Definition

Compares the PeerObject to the specified object.

Overloads

Equals(Object)

Compares the PeerObject to the specified object.

Equals(Object, Object)

Determines whether the specified PeerObject instances are considered equal.

Equals(PeerObject)

Compares a PeerObject to the specified PeerObject instance.

Equals(Object)

Compares the PeerObject 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 obj is a PeerObject instance, and the PeerObject instances have matching data; otherwise, false.

Exceptions

The object specified by obj has been disposed.

Applies to

Equals(Object, Object)

Determines whether the specified PeerObject 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 PeerObject to compare.

objB
Object

The second PeerObject to compare.

Returns

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

Applies to

Equals(PeerObject)

Compares a PeerObject to the specified PeerObject instance.

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

Parameters

other
PeerObject

The PeerObject instance to test for equality.

Returns

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

Implements

Exceptions

The PeerObject instance specified by other has been disposed.

Applies to