StaticContextSettings.ImportSchema Method (string)StaticContextSettings.ImportSchema Method (String)StaticContextSettings::ImportSchema Method (String^)
Imports the schema with the specified target namespace.
Parameters
- targetNamespace
Type: System.StringSystem.StringSystem::String^
The target namespace to import.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | targetNamespace is null
a null reference (Nothing in Visual Basic)
nullptr . |
ArgumentExceptionArgumentExceptionArgumentException | The SchemasSchemasSchemas does not contain a schema with the specified target namespace. |
Remarks
The schema with the specified namespace is implicitly imported in all modules of the XQuery program, XPath
Expression or XSL Transformation. This is equivalent to adding an import schema
declaration to every
module.
The target namespace must correspond to a schema within the SchemasSchemasSchemas,
or must be the XQueyr Functions and Operators schema "http://www.w3.org/2005/xpath-functions"
.