Evaluates an XPath expression.
Namespace:
DotNetBrowser.Dom
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.2
Syntax IXPathResult Evaluate(
string expression,
XPathResultType type = XPathResultType.Any
)
Parameters
- expression
- Type: SystemString
a string representing the XPath to be evaluated. Cannot be null or empty string. - type (Optional)
- Type: DotNetBrowser.Dom.XPathXPathResultType
type of result XPathResult to return. See XPathResultType
Return Value
Type:
IXPathResult
The
IXPathResult object of the type specified in the
type parameter. The return
value will
be always a valid
IXPathResult object.
Exceptions Exception | Condition |
---|
ArgumentException |
The expression is null, empty, or contains blank characters only.
|
ObjectDisposedException | The INode has already been disposed. |
XPathException | The XPath evaluation error occurs. |
See Also