System.Xml.DataDocumentXPathNavigator.ComparePosition C# (CSharp) Méthode

ComparePosition() public méthode

public ComparePosition ( XPathNavigator other ) : XmlNodeOrder
other System.Xml.XPath.XPathNavigator
Résultat XmlNodeOrder
        public override XmlNodeOrder ComparePosition(XPathNavigator other)
        {
            if (other == null)
            {
                return XmlNodeOrder.Unknown; // this is what XPathDocument does.
            }

            DataDocumentXPathNavigator otherDataDocXPathNav = other as DataDocumentXPathNavigator;

            return otherDataDocXPathNav == null || otherDataDocXPathNav.Document != _doc ?
                XmlNodeOrder.Unknown :
                _curNode.ComparePosition(otherDataDocXPathNav.CurNode);
        }
    }