Document Order Comparer. IComparer. Compare(Object, Object) Method
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
An Int32 that contains 0 if the nodes are equal; -1 if
x is before
y; 1 if
x is after
The two nodes do not share a common ancestor.
We recommend that instead of using this class directly, you use the InDocumentOrder method. This class is used internally by that method.