XPathNavigator.Evaluate Method (XPathExpression, XPathNodeIterator)

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

Uses the supplied context to evaluate the XPathExpression, and returns the typed result.

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

Syntax

'Declaration
Public Overridable Function Evaluate ( _
    expr As XPathExpression, _
    context As XPathNodeIterator _
) As Object
public virtual Object Evaluate(
    XPathExpression expr,
    XPathNodeIterator context
)

Parameters

Return Value

Type: System.Object
The result of the expression (Boolean, number, string, or node set). This maps to Boolean, Double, String, or XPathNodeIterator objects respectively.

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.