### 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 DynamicContext

public class DynamicContext

The class `DynamicContext` provides information about the dynamic context of an expression

### Property Summary
XdmItem | ContextItem The context item. May be null if no context item is defined
int | ContextPosition The context position (equivalent to the XPath `position()` function).
int | ContextSize The context size (equivalent to the XPath `last()` function).
net.sf.saxon.expr.XPathContext | Implementation The underlying object in the Saxon implementation, an instance of class `net.sf.saxon.expr.XPathContext`

## Property Detail

### ContextItem

public XdmItem ContextItem {get; }

The context item. May be null if no context item is defined

### ContextPosition

public int ContextPosition {get; }

The context position (equivalent to the XPath `position()` function).

Calling this method throws an exception if the context item is undefined.

### ContextSize

public int ContextSize {get; }

The context size (equivalent to the XPath `last()` function).

Calling this method throws an exception if the context item is undefined.

### Implementation

public net.sf.saxon.expr.XPathContext Implementation {get; }

The underlying object in the Saxon implementation, an instance of class `net.sf.saxon.expr.XPathContext`

This property provides access to internal methods in the Saxon engine that are not specifically exposed in the .NET API. In general these methods should be considered to be less stable than the classes in the Saxon.Api namespace.

The internal methods follow Java naming conventions rather than .NET conventions.

Information about the returned object (and the objects it provides access to) is included in the Saxon JavaDoc documentation, see net.sf.saxon.expr.XPathContext