XQuery ClassXQuery ClassXQuery Class

Queries XML data using the XQuery language.

Inheritance Hierarchy

Syntax

Public NotInheritable Class XQuery
public sealed class XQuery
public:
ref class XQuery sealed
 
The XQueryXQueryXQuery type exposes the following members.

Properties

 PropertyDescription
Public propertyIsUpdateIsUpdateIsUpdate Gets a value indicating whether this query is an update.
Public propertySerializationSettingsSerializationSettingsSerializationSettings Gets the settings requested for serialization.
Public propertyStaticTypeStaticTypeStaticType Gets an XdmTypeXdmTypeXdmType which represents the result type of the query as determined by static type analysis.

Top

Methods

 MethodDescription
Public methodstaticCompile (FileStream, XQuerySettings)Compile (FileStream, XQuerySettings)Compile (FileStream^, XQuerySettings^) Loads and compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program. The specified static context settings are used.
Public methodstaticCompile (Stream, XQuerySettings)Compile (Stream, XQuerySettings)Compile (Stream^, XQuerySettings^) Loads and compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program. The specified static context settings are used.
Public methodstaticCompile (string)Compile (String)Compile (String^) Compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program. Default static context settings are used.
Public methodstaticCompile (string, XmlNameTable)Compile (String, XmlNameTable)Compile (String^, XmlNameTable^) Compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program. Default static context settings are used.
Public methodstaticCompile (string, XQuerySettings)Compile (String, XQuerySettings)Compile (String^, XQuerySettings^) Compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program. The specified static context settings are used.
Public methodstaticCompile (Uri, Stream, XQuerySettings)Compile (Uri, Stream, XQuerySettings)Compile (Uri^, Stream^, XQuerySettings^) Loads and compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program. The specified static context settings are used.
Public methodstaticCompile (Uri, string)Compile (Uri, String)Compile (Uri^, String^) Compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program. Default static context settings are used.
Public methodstaticCompile (Uri, string, XmlNameTable)Compile (Uri, String, XmlNameTable)Compile (Uri^, String^, XmlNameTable^) Compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program. Default static context settings are used.
Public methodstaticCompile (Uri, string, XQuerySettings)Compile (Uri, String, XQuerySettings)Compile (Uri^, String^, XQuerySettings^) Compiles the specified XQuery program and returns an XQueryXQueryXQuery object that represents the XQuery program. The specified static context settings are used.
Public methodstaticCompile (XmlReader, XQuerySettings)Compile (XmlReader, XQuerySettings)Compile (XmlReader^, XQuerySettings^) Compiles the XQuery program expressed using the XML Syntax for XQuery 1.0 (XQueryX) and returns an XQueryXQueryXQuery object that represents the XQuery program. The specified static context settings are used.
Public methodstaticCompile (IXPathNavigable, XQuerySettings)Compile (IXPathNavigable, XQuerySettings)Compile (IXPathNavigable^, XQuerySettings^) Compiles the XQuery program expressed using the XML Syntax for XQuery 1.0 (XQueryX) and returns an XQueryXQueryXQuery object that represents the XQuery program. The specified static context settings are used.
Public methodstaticCompileExternalVariableCompileExternalVariableCompileExternalVariable Compiles the specified XQuery expression and returns an XQueryXQueryXQuery instance that represents the XQuery expression using the specified static context settings.
Public methodObject.EqualsObject.EqualsObject::EqualsDetermines whether the specified object is equal to the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodEvaluate ()Evaluate ()Evaluate () Returns an IEnumerable<T>IEnumerable(Of T)IEnumerable<T> representing the result of evaluating the XQuery program.
Public methodEvaluate (XPathItem)Evaluate (XPathItem)Evaluate (XPathItem^) Returns an IEnumerable<T>IEnumerable(Of T)IEnumerable<T> representing the result of evaluating the XQuery program.
Public methodEvaluate (XPathItem, IResultDocumentHandler)Evaluate (XPathItem, IResultDocumentHandler)Evaluate (XPathItem^, IResultDocumentHandler^) Returns an IEnumerable<T>IEnumerable(Of T)IEnumerable<T> representing the result of evaluating the XQuery program.
Public methodEvaluate (DynamicContextSettings)Evaluate (DynamicContextSettings)Evaluate (DynamicContextSettings^) Returns an IEnumerable<T>IEnumerable(Of T)IEnumerable<T> representing the result of evaluating the XQuery program.
Public methodEvaluate (DynamicContextSettings, IResultDocumentHandler)Evaluate (DynamicContextSettings, IResultDocumentHandler)Evaluate (DynamicContextSettings^, IResultDocumentHandler^) Returns an IEnumerable<T>IEnumerable(Of T)IEnumerable<T> representing the result of evaluating the XQuery program.
Public methodEvaluate (IResultDocumentHandler)Evaluate (IResultDocumentHandler)Evaluate (IResultDocumentHandler^) Returns an IEnumerable<T>IEnumerable(Of T)IEnumerable<T> representing the result of evaluating the XQuery program.
Public methodEvaluateToItem ()EvaluateToItem ()EvaluateToItem () Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XQuery program, or null a null reference (Nothing in Visual Basic) nullptr if the query returns the empty sequence.
Public methodEvaluateToItem (XPathItem)EvaluateToItem (XPathItem)EvaluateToItem (XPathItem^) Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XQuery program, or null a null reference (Nothing in Visual Basic) nullptr if the query returns the empty sequence.
Public methodEvaluateToItem (XPathItem, IResultDocumentHandler)EvaluateToItem (XPathItem, IResultDocumentHandler)EvaluateToItem (XPathItem^, IResultDocumentHandler^) Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XQuery program, or null a null reference (Nothing in Visual Basic) nullptr if the query returns the empty sequence.
Public methodEvaluateToItem (DynamicContextSettings)EvaluateToItem (DynamicContextSettings)EvaluateToItem (DynamicContextSettings^) Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XQuery program, or null a null reference (Nothing in Visual Basic) nullptr if the query returns the empty sequence.
Public methodEvaluateToItem (DynamicContextSettings, IResultDocumentHandler)EvaluateToItem (DynamicContextSettings, IResultDocumentHandler)EvaluateToItem (DynamicContextSettings^, IResultDocumentHandler^) Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XQuery program, or null a null reference (Nothing in Visual Basic) nullptr if the query returns the empty sequence.
Public methodEvaluateToItem (IResultDocumentHandler)EvaluateToItem (IResultDocumentHandler)EvaluateToItem (IResultDocumentHandler^) Returns an XPathItemXPathItemXPathItem representing the result of evaluating the XQuery program, or null a null reference (Nothing in Visual Basic) nullptr if the query returns the empty sequence.
Public methodEvaluateUpdate (XPathItem, IResultDocumentHandler)EvaluateUpdate (XPathItem, IResultDocumentHandler)EvaluateUpdate (XPathItem^, IResultDocumentHandler^) Evaluates an updating XQuery program with the specified context item and result document handler.
Public methodEvaluateUpdate (DynamicContextSettings, IResultDocumentHandler)EvaluateUpdate (DynamicContextSettings, IResultDocumentHandler)EvaluateUpdate (DynamicContextSettings^, IResultDocumentHandler^) Evaluates an updating XQuery (XQuery Update Facility) program.
Public methodEvaluateUpdate (IResultDocumentHandler)EvaluateUpdate (IResultDocumentHandler)EvaluateUpdate (IResultDocumentHandler^) Evaluates an updating XQuery program with the specified result document handler.
Public methodExplainExplainExplain Writes the query execution plan to the specified XmlWriterXmlWriterXmlWriter.
Protected methodObject.FinalizeObject.FinalizeObject::FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetHashCodeObject.GetHashCodeObject::GetHashCodeServes as the default hash function. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetTypeObject.GetTypeObject::GetTypeGets the TypeTypeType of the current instance.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseCloneCreates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodSerialize (Stream)Serialize (Stream)Serialize (Stream^) Serializes the result of the query to the specified StreamStreamStream.
Public methodSerialize (Stream, XPathItem)Serialize (Stream, XPathItem)Serialize (Stream^, XPathItem^) Serializes the result of the query to the specified StreamStreamStream.
Public methodSerialize (Stream, DynamicContextSettings)Serialize (Stream, DynamicContextSettings)Serialize (Stream^, DynamicContextSettings^) Serializes the result of the query to the specified StreamStreamStream.
Public methodSerialize (TextWriter)Serialize (TextWriter)Serialize (TextWriter^) Serializes the result of the query to the specified TextWriterTextWriterTextWriter.
Public methodSerialize (TextWriter, XPathItem)Serialize (TextWriter, XPathItem)Serialize (TextWriter^, XPathItem^) Serializes the result of the query to the specified TextWriterTextWriterTextWriter.
Public methodSerialize (TextWriter, DynamicContextSettings)Serialize (TextWriter, DynamicContextSettings)Serialize (TextWriter^, DynamicContextSettings^) Serializes the result of the query to the specified TextWriterTextWriterTextWriter.
Public methodSerialize (string)Serialize (String)Serialize (String^) Serializes the result of the query to the specified file.
Public methodSerialize (string, XPathItem)Serialize (String, XPathItem)Serialize (String^, XPathItem^) Serializes the result of the query to the specified file.
Public methodSerialize (string, DynamicContextSettings)Serialize (String, DynamicContextSettings)Serialize (String^, DynamicContextSettings^) Serializes the result of the query to the specified file.
Public methodSerialize (XmlWriter)Serialize (XmlWriter)Serialize (XmlWriter^) Serializes the result of the query to the specified XmlWriterXmlWriterXmlWriter.
Public methodSerialize (XmlWriter, XPathItem)Serialize (XmlWriter, XPathItem)Serialize (XmlWriter^, XPathItem^) Serializes the result of the query to the specified XmlWriterXmlWriterXmlWriter.
Public methodSerialize (XmlWriter, DynamicContextSettings)Serialize (XmlWriter, DynamicContextSettings)Serialize (XmlWriter^, DynamicContextSettings^) Serializes the result of the query to the specified XmlWriterXmlWriterXmlWriter.
Public methodSerialize (IResultDocumentHandler)Serialize (IResultDocumentHandler)Serialize (IResultDocumentHandler^) Serializes the result of the query using an object which implements the IResultDocumentHandlerIResultDocumentHandlerIResultDocumentHandler interface.
Public methodSerialize (IResultDocumentHandler, XPathItem)Serialize (IResultDocumentHandler, XPathItem)Serialize (IResultDocumentHandler^, XPathItem^) Serializes the result of the query using an object which implements the IResultDocumentHandlerIResultDocumentHandlerIResultDocumentHandler interface.
Public methodSerialize (IResultDocumentHandler, DynamicContextSettings)Serialize (IResultDocumentHandler, DynamicContextSettings)Serialize (IResultDocumentHandler^, DynamicContextSettings^) Serializes the result of the query using an object which implements the IResultDocumentHandlerIResultDocumentHandlerIResultDocumentHandler interface.
Public methodToStringToStringToString Returns a stringStringString representing the query execution plan. (Overrides Object.ToStringObject.ToStringObject::ToString)
Public methodstaticToXQueryX (string, XmlWriter, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (String, XmlWriter, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (String^, XmlWriter^, XQueryVersion, BoundarySpace, XmlVersion) Writes the specified query to the specified XmlWriterXmlWriterXmlWriter using the XML Syntax for XQuery 1.0 (XQueryX).
Public methodstaticToXQueryX (string, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (String, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (String^, XQueryVersion, BoundarySpace, XmlVersion) Returns an IXPathNavigableIXPathNavigableIXPathNavigable over the specified XQuery converted to the XML Syntax for XQuery 1.0 (XQueryX).
Public methodstaticToXQueryX (Uri, string, XmlWriter, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (Uri, String, XmlWriter, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (Uri^, String^, XmlWriter^, XQueryVersion, BoundarySpace, XmlVersion) Writes the specified query to the specified XmlWriterXmlWriterXmlWriter using the XML Syntax for XQuery 1.0 (XQueryX).
Public methodstaticToXQueryX (Uri, string, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (Uri, String, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (Uri^, String^, XQueryVersion, BoundarySpace, XmlVersion) Returns an IXPathNavigableIXPathNavigableIXPathNavigable over the specified XQuery converted to the XML Syntax for XQuery 1.0 (XQueryX).
Public methodstaticToXQueryX (XmlNameTable, Uri, string, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (XmlNameTable, Uri, String, XQueryVersion, BoundarySpace, XmlVersion)ToXQueryX (XmlNameTable^, Uri^, String^, XQueryVersion, BoundarySpace, XmlVersion) Returns an IXPathNavigableIXPathNavigableIXPathNavigable over the specified XQuery converted to the XML Syntax for XQuery 1.0 (XQueryX).

Top

Remarks

The XQueryXQueryXQuery class is an XQuery processor that supports the XQuery 1.0 syntax.