System.Xml.Schema.XmlSchemaValidator.AddSchema Method

Adds an XML Schema Definition Language (XSD) schema to the set of schemas used for validation.

Syntax

public void AddSchema (XmlSchema schema)

Parameters

schema
An System.Xml.Schema.XmlSchema object to add to the set of schemas used for validation.

Remarks

The following are important notes to consider when using the XmlSchemaValidator.AddSchema(XmlSchema) method.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0