Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlSchemaSet::Remove Method (XmlSchema^)

 

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

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public:
XmlSchema^ Remove(
	XmlSchema^ schema
)

Parameters

schema
Type: System.Xml.Schema::XmlSchema^

The XmlSchema object to remove from the XmlSchemaSet.

Return Value

Type: System.Xml.Schema::XmlSchema^

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

Exception Condition
XmlSchemaException

The schema is not a valid schema.

ArgumentNullException

The XmlSchema passed as a parameter is null.

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

The following example illustrates adding multiple schemas to an XmlSchemaSet, then removing one of the schemas using the Remove method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft