System.Xml [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 To be added System.Object System.Collections.ICollection System.Obsolete("Use XmlSchemaSet.") Schemas are loaded using the method, at which time the schema is associated with a namespace Uniform Resource Identifier (URI). For XML Schemas, this will typically be the targetNamespace property of the schema. Although this class stores both XML Schemas and XDR schemas, any method and property that takes or returns an applies to XML Schemas only. This version of the product supports the World Wide Web Consortium (W3C) XML Schema recommendation located at http://www.w3.org/TR/xmlschema-1 and http://www.w3.org/TR/xmlschema-2. An XML Schema must reference the W3C Schema namespace http://www.w3.org/2001/XMLSchema in its schema element. See the method for an example. XmlSchemaCollection can be used by for efficient data validation. The class is obsolete in the Microsoft .NET Framework version 2.0 and has been replaced by the class. Contains a cache of XML Schema definition language (XSD) and XML-Data Reduced (XDR) schemas. The class class is obsolete. Use instead. Constructor 1.0.5000.0 2.0.0.0 4.0.0.0 The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Initializes a new instance of the XmlSchemaCollection class. Constructor 1.0.5000.0 2.0.0.0 4.0.0.0 To be added Initializes a new instance of the XmlSchemaCollection class with the specified . The XmlNameTable is used when loading schemas. The XmlNameTable to use. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.XmlSchema The targetNamespace attribute is used to identify this schema. If the schema being added contains references to other namespaces (through include and import elements), the trust level of the application determines how these other namespaces are resolved. (In the .NET Framework version 1.0, a default was always used). Fully trusted code: A default XmlUrlResolver with no user credentials is used to resolve any external resources. The schemas for these other namespaces are loaded for validation purposes only. Unlike the original schema, these other schemas are not explicitly added to the schema collection. As a result, they are not accessible using any of the collection methods or properties. If these external resources are located on a network resource that requires authentication, use an overload that takes an as one of its arguments and specify an XmlResolver with the necessary credentials. Semi-trusted code: External references are not resolved. If the XmlSchemaCollection is being accessed using the property, the Add method uses the XmlResolver specified by the property. The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Adds the to the collection. The XmlSchema object. The XmlSchema to add to the collection. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void If the schema being added contains references to other namespaces (through include and import elements or the x-schema attribute), the trust level of the application determines how these other namespaces are resolved. (In the .NET Framework version 1.0, a default was always used). Fully trusted code: A default XmlUrlResolver with no user credentials is used to resolve any external resources. The schemas for these other namespaces are loaded for validation purposes only. Unlike the original schema, these other schemas are not explicitly added to the schema collection. As a result, they are not accessible using any of the collection methods or properties. If these external resources are located on a network resource that requires authentication, use an overload that takes an as one of its arguments and specify an XmlResolver with the necessary credentials. Semi-trusted code: External references are not resolved. If the XmlSchemaCollection is being accessed using the property, the Add method uses the XmlResolver specified by the property. The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Adds all the namespaces defined in the given collection (including their associated schemas) to this collection. The XmlSchemaCollection you want to add to this collection. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.XmlSchema If has already been associated with another schema in the collection, the schema being added replaces the original schema in the collection. For example, in the following C# code, authors.xsd is removed from the collection and names.xsd is added. schemaColl.Add("urn:author", "authors.xsd"); schemaColl.Add("urn:author", "names.xsd"); If is null and the schema being added is an XML Schema, the Add method uses the targetNamespace defined in the XML Schema to identify the schema in the collection. If the schema being added contains references to other namespaces (through include and import elements or the x-schema attribute), the trust level of the application determines how these other namespaces are resolved. (In the .NET Framework version 1.0, a default was always used). Fully trusted code: A default XmlUrlResolver with no user credentials is used to resolve any external resources. The schemas for these other namespaces are loaded for validation purposes only. Unlike the original schema, these other schemas are not explicitly added to the schema collection. As a result, they are not accessible using any of the collection methods or properties. If these external resources are located on a network resource that requires authentication, use an overload that takes an as one of its arguments and specify an XmlResolver with the necessary credentials. Semi-trusted code: External references are not resolved. If the XmlSchemaCollection is being accessed using the property, the Add method uses the XmlResolver specified by the property. The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Adds the schema located by the given URL into the schema collection. The added to the schema collection; null if the schema being added is an XDR schema or if there are compilation errors in the schema. The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace. The URL that specifies the schema to load. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.XmlSchema If has already been associated with another schema in the collection, the schema being added replaces the original schema in the collection. If is null and the schema being added is an XML Schema, the Add method uses the targetNamespace defined in the XML Schema to identify the schema in the collection. If the schema being added contains references to other namespaces (through include and import elements or the x-schema attribute), the trust level of the application determines how these other namespaces are resolved. (In the .NET Framework version 1.0, a default was always used). Fully trusted code: A default XmlUrlResolver with no user credentials is used to resolve any external resources. The schemas for these other namespaces are loaded for validation purposes only. Unlike the original schema, these other schemas are not explicitly added to the schema collection. As a result, they are not accessible using any of the collection methods or properties. If these external resources are located on a network resource that requires authentication, use an overload that takes an as one of its arguments and specify an XmlResolver with the necessary credentials. Semi-trusted code: External references are not resolved. If the XmlSchemaCollection is being accessed using the property, the Add method uses the XmlResolver specified by the property. The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Adds the schema contained in the to the schema collection. The added to the schema collection; null if the schema being added is an XDR schema or if there are compilation errors in the schema. The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace. containing the schema to add. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.XmlSchema The targetNamespace attribute is used to identify this schema. If the schema contains include and import elements that reference other namespaces, the schemas for these other namespaces are loaded for validation purposes only. Unlike the original schema, these other schemas are not explicitly added to the schema collection. As a result, they are not accessible using any of the collection methods or properties. The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Adds the to the collection. The specified is used to resolve any external references. The XmlSchema added to the schema collection. The XmlSchema to add to the collection. The used to resolve namespaces referenced in include and import elements. If this is null, external references are not resolved. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.XmlSchema If has already been associated with another schema in the collection, the schema being added replaces the original schema in the collection. If is null and the schema being added is an XML Schema, the Add method uses the targetNamespace attribute defined in the XML Schema to identify the schema in the collection. If the schema being added contains references to other namespaces (through include and import elements or the x-schema attribute), the schemas for these other namespaces are loaded for validation purposes only. Unlike the original schema, these other schemas are not explicitly added to the schema collection. As a result, they are not accessible using any of the collection methods or properties. The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Adds the schema contained in the to the schema collection. The specified is used to resolve any external resources. The added to the schema collection; null if the schema being added is an XDR schema or if there are compilation errors in the schema. The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace. containing the schema to add. The used to resolve namespaces referenced in include and import elements or x-schema attribute (XDR schemas). If this is null, external references are not resolved. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Gets a value indicating whether a schema with the specified namespace is in the collection. true if a schema with the specified namespace is in the collection; otherwise, false. The namespace URI associated with the schema. For XML Schemas, this will typically be the target namespace. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Gets a value indicating whether the targetNamespace of the specified is in the collection. true if there is a schema in the collection with the same targetNamespace; otherwise, false. The XmlSchema object. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Copies all the XmlSchema objects from this collection into the given array starting at the given index. The array to copy the objects to. The index in where copying will begin. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Int32 To be added: an object of type 'int' The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Gets the number of namespaces defined in this collection. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.XmlSchemaCollectionEnumerator The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Provides support for the "for each" style iteration over the collection of schemas. An enumerator for iterating over all schemas in the current collection. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.XmlSchema To be added. To be added. To be added. To be added. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.XmlNameTable To be added: an object of type 'System.Xml.XmlNameTable' The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Gets the default XmlNameTable used by the XmlSchemaCollection when loading new schemas. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. For a description of this member, see . The array to copy the objects to. The index in where copying will begin. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Int32 To be added. This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. For a description of this member, see . Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean To be added. This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. For a description of this member, see . Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Object To be added. This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. For a description of this member, see . Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Collections.IEnumerator This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. For a description of this member, see . Returns the for the collection. Event 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.ValidationEventHandler These events occur when the schemas are added to the collection. If an event handler is not provided, an is thrown on any validation errors where the is XmlSeverityType.Error. To specify an event handler, define a callback function and add it to the ValidationEventHandler. The class is obsolete in the .NET Framework version 2.0 and has been replaced by the class. Sets an event handler for receiving information about the XDR and XML schema validation errors.