Remove()

XmlSchemaSet::Remove(const SharedPtr<XmlSchema>&) method

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

SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaSet::Remove(const SharedPtr<XmlSchema> &schema)

Arguments

ParameterTypeDescription
schemaconst SharedPtr<XmlSchema>&The XmlSchema object to remove from the XmlSchemaSet.

Return Value

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

Exceptions

ExceptionDescription
XmlSchemaExceptionThe schema is not a valid schema.
ArgumentNullExceptionThe XmlSchema passed as a parameter is nullptr.

See Also