### Saxon.Api

- BinaryResource
- CatalogCollection
- DirectoryCollection
- DocumentBuilder
- DomDestination
- DynamicContext
- DynamicError
- EmptyEnumerator<T>
- ErrorReporter
- ErrorReporterToStaticError
- ErrorReporterWrapper
- ExtensionFunction
- ExtensionFunctionCall
- ExtensionFunctionDefinition
- Feature<T>
- FeatureKeys
- HostLanguage
- ICollectionFinder
- IErrorReporter
- IInvalidityHandler
- IMessageListener
- IMessageListener2
- InvalidityHandlerWrapper
- IPredicate<in XdmItem>
- IQueryResolver
- IResource
- IResourceCollection
- IResourceFactory
- IResultDocumentHandler
- IXmlLocation
- JarCollection
- NamespaceConstant
- NullDestination
- Predicate<T>
- Predicates
- Processor
- QName
- RawDestination
- RecoveryPolicy
- Resource
- ResourceCollection
- SchemaManager
- SchemaResolver
- SchemaValidationMode
- SchemaValidator
- Serializer
- StandardCollectionFinder
- StandardLogger
- StaticContext
- StaticError
- Step<TInput, TResult>
- Steps
- TextWriterDestination
- TreeModel
- URIQueryParameters
- ValidationFailure
- WhitespacePolicy
- XdmAnyArrayType
- XdmAnyFunctionType
- XdmAnyItemType
- XdmAnyMapType
- XdmAnyNodeType
- XdmArray
- XdmAtomicType
- XdmAtomicValue
- XdmAxis
- XdmDestination
  - - TreeProtector
- XdmEmptySequence
- XdmExternalObjectValue
- XdmFunctionItem
- XdmItem
- XdmItemType
- XdmMap
- XdmNode
- XdmNodeKind
- XdmSequenceType
- XdmValue
- XmlDestination
- XmlProcessingError
- XmlResource
- XPathCompiler
- XPathExecutable
- XPathSelector
- XQueryCompiler
- XQueryEvaluator
- XQueryExecutable
- Xslt30Transformer
- XsltCompiler
- XsltExecutable
  - - ParameterDetails
- XsltPackage
- XsltTransformer

### Saxon.Api

# Class XQueryExecutable

public class XQueryExecutable

An `XQueryExecutable` represents the compiled form of a query. To execute the query, it must first be loaded to form an `XQueryEvaluator`.

An `XQueryExecutable` is immutable, and therefore thread-safe. It is simplest to load a new `XQueryEvaluator` each time the query is to be run. However, the `XQueryEvaluator` is serially reusable within a single thread.

An `XQueryExecutable` is created by using one of the `Compile` methods on the `XQueryCompiler` class.

### Property Summary
bool | IsUpdateQuery Ask whether this is an updating query (that is, one that returns a pending update list rather than a conventional value).

### Method Summary
net.sf.saxon.s9api.XQueryExecutable | getUnderlyingCompiledQuery() Escape-hatch method to get the underlying Saxon implementation object if required. This provides access to methods that may not be stable from release to release.
XQueryEvaluator | Load() Load the query to prepare it for execution.

## Property Detail

### IsUpdateQuery

public bool IsUpdateQuery {get; }

Ask whether this is an updating query (that is, one that returns a pending update list rather than a conventional value).

## Method Detail

### getUnderlyingCompiledQuery

public net.sf.saxon.s9api.XQueryExecutable getUnderlyingCompiledQuery()

Escape-hatch method to get the underlying Saxon implementation object if required. This provides access to methods that may not be stable from release to release.

### Load

public XQueryEvaluator Load()

Load the query to prepare it for execution.

Returns:

An `XQueryEvaluator`. The returned `XQueryEvaluator` can be used to set up the dynamic context for query evaluation, and to run the query.