System.Xml.Schema.XmlSchemaSet.Remove Method

Removes the specified XML Schema definition language (XSD) schema from the System.Xml.Schema.XmlSchemaSet.

Syntax

public XmlSchema Remove (XmlSchema schema)

Parameters

schema
The System.Xml.Schema.XmlSchema object to remove from the System.Xml.Schema.XmlSchemaSet.

Returns

The System.Xml.Schema.XmlSchema object removed from the System.Xml.Schema.XmlSchemaSet or null if the schema was not found in the System.Xml.Schema.XmlSchemaSet.

Remarks

Removing a schema from the System.Xml.Schema.XmlSchemaSet sets the XmlSchemaSet.IsCompiled property to false.

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