StaticContextSettings.Schemas PropertyStaticContextSettings.Schemas PropertyStaticContextSettings::Schemas Property
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; }
public: property System.Xml.Schema::XmlSchemaSet^ Schemas { System.Xml.Schema::XmlSchemaSet^ get(); void set(System.Xml.Schema::XmlSchemaSet^ value); }
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
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | SchemasSchemasSchemas 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, so the base types of global or anonymous types already in the schema set should not be modified after compilation.
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.