NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlNavigator.Compile

Compiles the given XPath expression and returns an object representing that expression.

[Visual Basic]
Overridable Public Function Compile( _
   ByVal xpathexpr As String _
) As Object
[C#]
public virtual object Compile(
   string xpathexpr
);
[C++]
public: virtual Object* Compile(
   String* xpathexpr
);
[JScript]
public function Compile(
   xpathexpr : String
) : Object;

Parameters

xpathexpr
The expression to compile.

Return Value

The XPath expression as an object.

Exceptions

Exception Type Condition
ArgumentException The xpathexpr param contains an invalid XPath expression.

Remarks

An XPath expression is evaluated to yield one of the following return types:

The expressions that return a node-set can be used in the Select methods. The expressions that return a boolean, number, or string can be used in Evaluate. The rules on valid expressions for the Matches method are specific to that method.

See Also

XmlNavigator Class | XmlNavigator Members | System.NewXml Namespace