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 propertyCodeGenerationCodeGenerationCodeGeneration Gets or sets a value specifying which code generation method should be used.
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 propertyDecimalFormatsDecimalFormatsDecimalFormats Gets the decimal formats.
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 propertyEnableProfilingEnableProfilingEnableProfiling Gets or sets a value indicating whether profiling is enabled.
Public propertyEvaluationStrategyEvaluationStrategyEvaluationStrategy Sets the evaluation strategy used to evaluate variable in the query.
Public propertyInputSettingsInputSettingsInputSettings Gets or sets the input settings.
Public propertyKeysKeysKeys Gets the collection of declared keys.
Public propertyLibrariesLibrariesLibraries Gets or sets the set of additional libraries available to the query.
Public propertyNameTableNameTableNameTable Gets the XmlNameTableXmlNameTableXmlNameTable to be used for atomized string comparisons.
Public propertyNamespacesNamespacesNamespaces Gets or sets the statically known namespaces.
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 propertyParametersParametersParameters Gets the parameter declarations.
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 methodDeclareKeyDeclareKeyDeclareKey Declares a key.
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 methodDeclareVariable (XmlQualifiedName)DeclareVariable (XmlQualifiedName)DeclareVariable (XmlQualifiedName^) Declares an external variable with the specified name.
Public methodDeclareVariable (XmlQualifiedName, XdmType)DeclareVariable (XmlQualifiedName, XdmType)DeclareVariable (XmlQualifiedName^, XdmType^) Declares an external variable with the specified name and type.
Public methodObject.EqualsObject.EqualsObject::EqualsDetermines whether the specified object is equal to the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object)
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)
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.
Public methodstaticLoadXPathFunctionsSchemaLoadXPathFunctionsSchemaLoadXPathFunctionsSchema Returns a new XmlSchemaXmlSchemaXmlSchema instance corresponding to the schemas defined in XQuery Functions and Operators 3.1.
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseCloneCreates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.ToStringObject.ToStringObject::ToStringReturns a string that represents the current object.(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.