StaticContextSettings ClassStaticContextSettings ClassStaticContextSettings Class

This serves as a base class for the user-controllable static context settings of XQuery 1.0, XPath 2.0 and XSLT 2.0.

Syntax

Public Class StaticContextSettings
public class StaticContextSettings
public:
ref class StaticContextSettings
 
The StaticContextSettingsStaticContextSettingsStaticContextSettings type exposes the following members.

Constructors

 ConstructorDescription
Protected methodStaticContextSettings (XmlNameTable)StaticContextSettings (XmlNameTable)StaticContextSettings (XmlNameTable^) Initializes a new instance of the StaticContextSettingsStaticContextSettingsStaticContextSettings class with the specified XmlNameTableXmlNameTableXmlNameTable.
Protected methodStaticContextSettings (XmlNameTable, IXmlNamespaceResolver)StaticContextSettings (XmlNameTable, IXmlNamespaceResolver)StaticContextSettings (XmlNameTable^, IXmlNamespaceResolver^) Initializes a new instance of the StaticContextSettingsStaticContextSettingsStaticContextSettings class with the specified XmlNameTableXmlNameTableXmlNameTable and in scope namespaces.

Top

Properties

 PropertyDescription
Public propertyBaseURIBaseURIBaseURI Gets or sets the base URI.
Public propertyCollationResolverCollationResolverCollationResolver Gets or sets the resolver for collation URIs .
Public propertyCollectionTypeResolverCollectionTypeResolverCollectionTypeResolver Sets the resolver used to compute the type of calls to the fn:collection function .
Public propertyCompilationWarningsCompilationWarningsCompilationWarnings Gets or sets a value specifying which compilation warnings should be reported.
Public propertyContextItemTypeContextItemTypeContextItemType Gets or sets the static type of the initial context item.
Public propertyDefaultCollationDefaultCollationDefaultCollation Gets or sets the default collation URI.
Public propertyDefaultElementNamespaceDefaultElementNamespaceDefaultElementNamespace Gets or sets the default namespace for element and type names.
Public propertyDefaultFunctionNamespaceDefaultFunctionNamespaceDefaultFunctionNamespace Gets or sets the default namespace for function names.
Public propertyDocumentTypeResolverDocumentTypeResolverDocumentTypeResolver Sets the resolver used to compute the type of calls to the fn:doc function.
Public propertyInputSettingsInputSettingsInputSettings Gets or sets the input settings.
Public propertyLibrariesLibrariesLibraries Gets or sets the set of additional libraries available to the query.
Public propertyNamespacesNamespacesNamespaces Gets or sets the statically known namespaces.
Public propertyNameTableNameTableNameTable Gets the XmlNameTableXmlNameTableXmlNameTable to be used for atomized string comparisons.
Public propertyOptimizationLevelOptimizationLevelOptimizationLevel Gets or sets the level of optimization to perform when compiling an XPath expressiona, an XQuery program or an XSL transformation.
Public propertyParameterTypesParameterTypesParameterTypes Gets the parameter types.
Public propertySchemasSchemasSchemas Gets or sets the set of schemas used for type checking and schema validation in the query.
Public propertyXmlVersionXmlVersionXmlVersion Gets or sets the XML version to be used.

Top

Methods

 MethodDescription
Public methodDeclareNamespaceDeclareNamespaceDeclareNamespace Declares a namespace prefix and associates it with a namespace URI, adding the (prefix, URI) pair to the set of statically known namespaces.
Public methodObject.EqualsObject.EqualsObject::Equals Determines whether the specified objectObjectobject is equal to the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
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)
Public methodImportModule (string)ImportModule (String)ImportModule (String^) Imports the library with the specified target namespace.
Public methodImportModule (XdmModule)ImportModule (XdmModule)ImportModule (XdmModule^) Adds the specified module to the set of available libraries and imports the library with the module's namespace.
Public methodImportSchema (string)ImportSchema (String)ImportSchema (String^) Imports the schema with the specified target namespace.
Public methodImportSchema (XmlSchema)ImportSchema (XmlSchema)ImportSchema (XmlSchema^) Adds a schema to the set of available schemas, and imports its namespace.
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.ToStringObject.ToStringObject::ToString Returns a stringStringString that represents the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)

Top

Events

 EventDescription
Public eventCompilationErrorCompilationErrorCompilationError Occurs when a compilation error is encountered.

Top

Remarks

The static context of an expression is the information that is available during static analysis of the expression, prior to its evaluation.