Name

XPathExpression

Synopsis

This class represents a compiled XPath expression. An XPathExpression is returned by the Compile() method of XPathNavigator from an XPath expression string. The AddSort() method allows you to specify the order of returned nodes from the expression. SetContext() sets the namespace to use in the evaluation of the expression.

Public MustInherit Class XPathExpression
                  ' Public Instance Properties
   MustInherit Public ReadOnly Property Expression As String  
   MustInherit Public ReadOnly Property ReturnType As XPathResultType  
' Public Instance Methods
   MustInherit Public Sub AddSort(ByVal expr As Object, 
        ByVal comparer As System.Collections.IComparer) 
   MustInherit Public Sub AddSort(ByVal expr As Object, 
        ByVal order As XmlSortOrder, 
        ByVal caseOrder As XmlCaseOrder, 
        ByVal lang As String, 
        ByVal dataType As XmlDataType) 
   MustInherit Public Function Clone() As XPathExpression  
   MustInherit Public Sub SetContext(
        ByVal nsManager As System.Xml.XmlNamespaceManager) 
End Class

Returned By

XPathNavigator.Compile()

Passed To

XPathNavigator.{Evaluate(), Matches(), Select()}

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.