XmlSchemaSet.Schemas Method (String)
Assembly: System.Xml (in system.xml.dll)
The schema targetNamespace property.
Return ValueAn ICollection object containing all the schemas that have been added to the XmlSchemaSet that belong to the given namespace. If no schemas have been added to the XmlSchemaSet, an empty ICollection object is returned.
If the targetNamespace parameter is a null reference (Nothing in Visual Basic) or Empty, then all schemas without a namespace are returned.
This method returns schemas that were added indirectly to the XmlSchemaSet because they were imported.
The following example illustrates how to iterate over all the schemas in the http://www.contoso.com/books namespace in the XmlSchemaSet.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.