Редагувати

Поділитися через


PeerName.Equals Method

Definition

Determines whether the content of this PeerName object is equivalent to the content of another object.

Overloads

Equals(PeerName)

Performs a case-sensitive comparison of the current PeerName and the specified peer name.

Equals(Object)

Determines whether the content of this PeerName is equal to the content of another object.

Remarks

The implementation of Equals is defined by IEquatable<T>.

Equals(PeerName)

Performs a case-sensitive comparison of the current PeerName and the specified peer name.

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

Parameters

other
PeerName

The peer name to compare with this PeerName.

Returns

true if the specified PeerName identifies the same resource as the current peer name object; otherwise, false.

This method also returns false if other is set to null.

Implements

Remarks

Two peer names are considered equal if they contain identical characters in their Authority and Classifier components.

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

See also

Applies to

Equals(Object)

Determines whether the content of this PeerName is equal to the content of another 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 compare with the current PeerName.

Returns

true if the PeerName and the comparison object contain the same information; otherwise, false.

Remarks

This method inherits the default signature and behavior from Object.

See also

Applies to