StaticContextSettings.ImportSchema Method (string)StaticContextSettings.ImportSchema Method (String)StaticContextSettings::ImportSchema Method (String^)

Imports the schema with the specified target namespace.

Syntax

Public Sub ImportSchema( _
    targetNamespace As String _
)
public void ImportSchema(
    string targetNamespace
)
public:
void ImportSchema(
    String^ targetNamespace
)
 

Parameters

targetNamespace

Type: System.StringSystem.StringSystem::String^

The target namespace to import.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptiontargetNamespace is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionThe 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".