System.Xml.Schema.XmlSchemaSet.Schemas Method

Returns a collection of all the XML Schema definition language (XSD) schemas in the System.Xml.Schema.XmlSchemaSet.

Syntax

public ICollection Schemas ()

Returns

An ICollection object containing all the schemas that have been added to the System.Xml.Schema.XmlSchemaSet. If no schemas have been added to the System.Xml.Schema.XmlSchemaSet, an empty ICollection object is returned.

Remarks

This method returns schemas that were added indirectly to the System.Xml.Schema.XmlSchemaSet because they were imported.

Note:

The XmlSchemaSet.Schemas method is the equivalent of the XmlSchemaCollection.GetEnumerator method of the obsolete System.Xml.Schema.XmlSchemaCollection.

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