Mono Class Library: System.Xml.XPath.XPathNavigator Overview | Members

System.Xml.XPath.XPathNavigator.Evaluate Method

Evaluates an XPath expression and returns the result. The call to this method is equivalent to Evaluate (expr, null).

public virtual object Evaluate (XPathExpression expr)

Parameters

expr
An System.Xml.XPath.XPathExpression instance that represents an XPath expression.

Returns

An stem.Object instance that represents the evaluation result.

Remarks

To evaluate such XPath expression that contains certain namespace prefixes, the argument expression must be supplied XmlNamespaceManager via XPathExpression.SetContext method. If no matching namespace prefix were found in the XPath expression, an System.Xml.XPath.XPathException is thrown.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0