XNodeDocumentOrderComparer.IComparer.Compare(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares two nodes to determine their relative document order.
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
Parameters
Returns
An Int32 that contains 0 if the nodes are equal; -1 if x
is before y
; 1 if x
is after y
.
Implements
Exceptions
The two nodes do not share a common ancestor.
The two nodes are not derived from XNode.
Remarks
We recommend that instead of using this class directly, you use the InDocumentOrder method. This class is used internally by that method.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET