Partilhar via


XPathExpression Class

Definition

syntactical representation of the XPATH expression

[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public class XPathExpression
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type XPathExpression = class
Public Class XPathExpression
Inheritance
XPathExpression
Attributes

Constructors

XPathExpression(IList<XPathExpressionBlock>)

Constructs the XPathExpression from a list of XPathExpressionBlocks.

XPathExpression(String)

Constructs XPathExpression from a string

Properties

ExpressionSkeleton

Returns the expression stripped of all filters.

Item[Int32]

get the tree for the level given by the index

Length

number of levels

Methods

BlockExpressionSkeleton(Int32)

Returns the expression stripped of all filters, up to and including the given block index. For an expression "A/B/C", passing an index of 0 will get you "A", passing 1 will get you "A/B", and passing 2 or higher will get you "A/B/C".

GetAttribute(String, String)

get attribute for the given level from the filter

GetHashCode()

Gets XPathExpression has code by combining individual block hash codes.

ToString()

Returns the string representation of this expression.

Applies to