XNodeDocumentOrderComparer.IComparer.Compare(Object, Object) 메서드

정의

두 노드를 비교하여 상대적인 문서 순서를 확인합니다.

 virtual int System.Collections.IComparer.Compare(System::Object ^ x, System::Object ^ y) = System::Collections::IComparer::Compare;
int IComparer.Compare (object x, object y);
abstract member System.Collections.IComparer.Compare : obj * obj -> int
override this.System.Collections.IComparer.Compare : obj * obj -> int
Function Compare (x As Object, y As Object) As Integer Implements IComparer.Compare

매개 변수

x
Object

비교할 첫 번째 XNode입니다.

y
Object

비교할 두 번째 XNode입니다.

반환

Int32

노드가 서로 같으면 0, xy보다 앞에 나오면 -1, xy보다 뒤에 나오면 1이 들어 있는 Int32입니다.

구현

예외

두 노드가 공통 상위 노드를 공유하지 않는 경우

두 노드가 XNode에서 파생되지 않는 경우

설명

이 클래스를 직접 사용하는 대신 메서드를 InDocumentOrder 사용하는 것이 좋습니다. 이 클래스는 해당 메서드에서 내부적으로 사용됩니다.

적용 대상