StaticContextSettings.Schemas PropertyStaticContextSettings.Schemas PropertyStaticContextSettings::Schemas Property

Gets or sets the set of schemas used for type checking and schema validation in the query.

Syntax

Public Property Schemas As System.Xml.Schema.XmlSchemaSet
        Get
        Set(ByVal value As System.Xml.Schema.XmlSchemaSet)
public System.Xml.Schema.XmlSchemaSet Schemas { get; set; }
 

Property Value

Type: System.Xml.Schema.XmlSchemaSetSystem.Xml.Schema.XmlSchemaSetSystem.Xml.Schema::XmlSchemaSet^

The XmlSchemaSetXmlSchemaSetXmlSchemaSet containing the schemas used for type checking and schema validation.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionSchemasSchemasSchemas was set to null a null reference (Nothing in Visual Basic) nullptr.

Remarks

If an import schema declaration references a namespace that is already defined in this schema set, then no additional schemas are imported.

Any schemas imported by a query will be added to this XmlSchemaSetXmlSchemaSetXmlSchemaSet. The resolver specified by the XmlResolverXmlResolverXmlResolver property is used to resolve schema location hints in import schema declarations.

Documents passed into the query can be validated against this schema set in order to take full advantage of their type information.

Schema objects can be added and removed from the schema set before the query is evaluated.

The schema set underpins the type system. Modifying

In XmlPrime, schema-element tests are expanded to a set of tests matching the substitution group during compilation, so any substituting elements added to the schema set after compilation will not be matched.

By default this is a new XmlSchemaSetXmlSchemaSetXmlSchemaSet instance.