BuildComponentUtilitiesEvalXPathExpr(IXPathNavigable, XPathExpression, CustomContext) Method

This is used to get the string result from evaluating an XPath expression against the given document and context.

Definition

Namespace: Sandcastle.Core.BuildAssembler
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2024.12.21.0
public static string EvalXPathExpr(
	this IXPathNavigable document,
	XPathExpression expression,
	CustomContext context
)

Parameters

document  IXPathNavigable
The document to use
expression  XPathExpression
The XPath expression to evaluate
context  CustomContext
The context to use

Return Value

String
The evaluated expression result

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IXPathNavigable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also