Прочетете на английски Редактиране

Споделяне чрез


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.

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

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

.NET Framework 4.8.1 и други версии
Продукт Версии
.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 PeerNearMe instance to the specified object.

C#
public override bool Equals(object obj);

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

.NET Framework 4.8.1 и други версии
Продукт Версии
.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 PeerNearMe instances are considered equal.

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

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

.NET Framework 4.8.1 и други версии
Продукт Версии
.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