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.

C#
public override bool Equals(object obj);

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

.NET Framework 4.8.1 and other versions
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

Equals(Object, Object)

Determines whether the specified PeerObject instances are considered equal.

C#
public static bool Equals(object objA, object objB);

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

.NET Framework 4.8.1 and other versions
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

Equals(PeerObject)

Compares a PeerObject to the specified PeerObject instance.

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

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

.NET Framework 4.8.1 and other versions
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