XPathNavigator.ComparePosition Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Compares the position of the current XPathNavigator with the position of the XPathNavigator specified.

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

Syntax

'Declaration
Public Overridable Function ComparePosition ( _
    nav As XPathNavigator _
) As XmlNodeOrder
public virtual XmlNodeOrder ComparePosition(
    XPathNavigator nav
)

Parameters

Return Value

Type: System.Xml.XmlNodeOrder
An XmlNodeOrder value representing the comparative position of the two XPathNavigator objects.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.