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