Returns a collection of all the XML Schema definition language (XSD) schemas in the System.Xml.Schema.XmlSchemaSet that belong to the given namespace.
An ICollection object containing all the schemas that have been added to the System.Xml.Schema.XmlSchemaSet that belong to the given namespace. If no schemas have been added to the System.Xml.Schema.XmlSchemaSet, an empty ICollection object is returned.
If the targetNamespace parameter is null or string.Empty, then all schemas without a namespace are returned.
This method returns schemas that were added indirectly to the System.Xml.Schema.XmlSchemaSet because they were imported.
The XmlSchemaSet.Schemas(string) method is the equivalent of the XmlSchemaCollection.Item(string) method of the obsolete System.Xml.Schema.XmlSchemaCollection.