Click or drag to resize

INodeEvaluate Method

Evaluates an XPath expression.

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.24.2
Syntax
C#
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
ExceptionCondition
ArgumentException The expression is null, empty, or contains blank characters only.
ObjectDisposedExceptionThe INode has already been disposed.
XPathExceptionThe XPath evaluation error occurs.
See Also