PeerEndPoint.Equals Method

Definition

Specifies if the content of the PeerEndPoint object is equivalent to the content of another object.

Overloads

Equals(Object, Object)

Determines whether the specified PeerEndPoint objects are considered equal.

Equals(Object)

Compares the PeerEndPoint to the specified Object.

Equals(PeerEndPoint)

Compares the PeerEndPoint to the specified PeerEndPoint instance.

Equals(Object, Object)

Determines whether the specified PeerEndPoint objects are considered equal.

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

Parameters

objA
Object

The first PeerEndPoint to compare.

objB
Object

The second PeerEndPoint to compare.

Returns

true if the PeerEndPoint 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(Object)

Compares the PeerEndPoint to the specified Object.

C#
public override bool Equals(object obj);

Parameters

obj
Object

The Object to test for equality.

Returns

true if the PeerEndPoint is equal to the specified object instance; 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(PeerEndPoint)

Compares the PeerEndPoint to the specified PeerEndPoint instance.

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

Parameters

other
PeerEndPoint

The PeerEndPoint instance to test for equality.

Returns

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

Implements

Exceptions

This PeerEndPoint object 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