PeerName.Equals 메서드
정의
오버로드
Equals(PeerName) |
대/소문자를 구분하여 현재 PeerName과 지정된 피어 이름을 비교합니다.Performs a case-sensitive comparison of the current PeerName and the specified peer name. |
Equals(Object) |
이 PeerName의 콘텐츠가 다른 개체의 콘텐츠와 같은지 여부를 확인합니다.Determines whether the content of this PeerName is equal to the content of another object. |
설명
Equals 구현은 IEquatable에 의해 정의 됩니다 <T> .The implementation of Equals is defined by IEquatable<T>.
Equals(PeerName)
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
매개 변수
반환
지정된 PeerName이 현재 피어 이름 개체와 같은 리소스로 식별되면 true
이고, 그렇지 않으면 false
입니다.true
if the specified PeerName identifies the same resource as the current peer name object; otherwise, false
.
other
가 false
로 설정된 경우에도 이 메서드는 null
를 반환합니다.This method also returns false
if other
is set to null
.
구현
설명
두 개의 피어 이름에 동일한 문자가 포함 된 경우 같은 것으로 간주 됩니다 자신의 Authority 고 Classifier 구성 요소입니다.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.
추가 정보
적용 대상
Equals(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
매개 변수
반환
PeerName과 비교 대상 개체에 같은 정보가 포함되어 있으면 true
이고, 그렇지 않으면 false
입니다.true
if the PeerName and the comparison object contain the same information; otherwise, false
.
설명
이 메서드는 기본 서명 및에서 동작을 상속 Object합니다.This method inherits the default signature and behavior from Object.