Method Evaluate
- Namespace
- DotNetBrowser.Dom
- Assembly
- DotNetBrowser.dll
Evaluate(string, XPathResultType)
Evaluates an XPath expression.
IXPathResult Evaluate(string expression, XPathResultType type = XPathResultType.Any)
Parameters
expressionstringa string representing the XPath to be evaluated. Cannot be null or empty string.
typeXPathResultTypetype of result XPathResult to return. See XPathResultType
Returns
- IXPathResult
The IXPathResult object of the type specified in the
typeparameter. The return value will be always a valid IXPathResult object.
Exceptions
- ArgumentException
The
expressionis null, empty, or contains blank characters only.- ObjectDisposedException
The INode has already been disposed.
- XPathException
The XPath evaluation error occurs.