XPath ClassXPath ClassXPath Class

Provides a typed class that represents a compiled XPath 2.0 expression.

Inheritance Hierarchy

Syntax

Public NotInheritable Class XPath
public sealed class XPath
public:
ref class XPath sealed
 
The XPathXPathXPath type exposes the following members.

Properties

 PropertyDescription
Public propertyStaticTypeStaticTypeStaticType Gets an XdmTypeXdmTypeXdmType which represents the result type of the expression as determined by static type analysis.

Top

Methods

 MethodDescription
Public methodstaticCompile (string, XmlNameTable)Compile (String, XmlNameTable)Compile (String^, XmlNameTable^) Compiles an XPath expression and returns a XPathXPathXPath object that represents the expression using the default settings.
Public methodstaticCompile (string, XmlNameTable, IXmlNamespaceResolver)Compile (String, XmlNameTable, IXmlNamespaceResolver)Compile (String^, XmlNameTable^, IXmlNamespaceResolver^) Compiles an XPath expression and returns a XPathXPathXPath object that represents the expression with the specified in-scope namespaces.
Public methodstaticCompile (string, XPathSettings)Compile (String, XPathSettings)Compile (String^, XPathSettings^) Compiles an XPath expression and returns a XPathXPathXPath object that represents the expression.
Public methodstaticCompilePatternCompilePatternCompilePattern Compiles an XPath pattern and returns a XPathXPathXPath object that represents the expression.
Public methodObject.EqualsObject.EqualsObject::Equals Determines whether the specified objectObjectobject is equal to the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodEvaluate ()Evaluate ()Evaluate () Returns an XPathItemCollectionXPathItemCollectionXPathItemCollection representing the result of evaluating the XPath expression.
Public methodEvaluate (XPathItem)Evaluate (XPathItem)Evaluate (XPathItem^) Returns an XPathItemCollectionXPathItemCollectionXPathItemCollection representing the result of evaluating the XPath expression.
Public methodEvaluate (DynamicContextSettings)Evaluate (DynamicContextSettings)Evaluate (DynamicContextSettings^) Returns an XPathItemCollectionXPathItemCollectionXPathItemCollection representing the result of evaluating the XPath expression.
Public methodEvaluateToItem ()EvaluateToItem ()EvaluateToItem () Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XPath expression, or null a null reference (Nothing in Visual Basic) nullptr if the expression returns the empty sequence.
Public methodEvaluateToItem (XPathItem)EvaluateToItem (XPathItem)EvaluateToItem (XPathItem^) Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XPath expression, or null a null reference (Nothing in Visual Basic) nullptr if the expression returns the empty sequence.
Public methodEvaluateToItem (DynamicContextSettings)EvaluateToItem (DynamicContextSettings)EvaluateToItem (DynamicContextSettings^) Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XPath expression, or null a null reference (Nothing in Visual Basic) nullptr if the expression returns the empty sequence.
Public methodExplainExplainExplain Writes the query execution plan to the specified XmlWriterXmlWriterXmlWriter.
Protected methodObject.FinalizeObject.FinalizeObject::Finalize Allows an objectObjectobject to attempt to free resources and perform other cleanup operations before the objectObjectobject is reclaimed by garbage collection. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetHashCodeObject.GetHashCodeObject::GetHashCode Serves as a hash function for a particular type. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetTypeObject.GetTypeObject::GetType Gets the TypeTypeType of the current instance. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodToStringToStringToString Returns a stringStringString representing the expression execution plan. (Overrides Object.ToStringObject.ToStringObject::ToString)

Top