PeerApplication.Equals Method

Definition

Compares the PeerApplication to the specified object.

Overloads

Equals(Object, Object)

Determines whether the specified PeerApplication objects are considered equal.

Equals(Object)

Compares the PeerApplication to the specified Object.

Equals(PeerApplication)

Compares the PeerApplication to the specified PeerApplication instance.

Equals(Object, Object)

Determines whether the specified PeerApplication objects are considered equal.

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

Parameters

objA
Object

The first PeerApplication to compare.

objB
Object

The second PeerApplication to compare.

Returns

true if the specified objects have the same globally unique application Id and Description; otherwise, false.

See also

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 PeerApplication to the specified Object.

C#
public override bool Equals(object obj);

Parameters

obj
Object

The Object to test for equality.

Returns

true if the PeerApplication is equal to the specified object instance; otherwise, false.

Exceptions

The Object has been disposed.

See also

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(PeerApplication)

Compares the PeerApplication to the specified PeerApplication instance.

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

Parameters

other
PeerApplication

The PeerApplication instance to test for equality.

Returns

true if the PeerApplication instance provided has matching data; otherwise, false. This method also returns false if other is null.

Implements

Exceptions

This PeerApplication object has been disposed.

Remarks

No normalizations are performed on the strings prior to comparison. All normalization should have been completed while or before constructing the PeerApplication objects.

See also

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