This documentation is archived and is not being maintained.

XmlSchemaObjectCollection.Remove Method

Removes an XmlSchemaObject from the XmlSchemaObjectCollection.

[Visual Basic]
Public Sub Remove( _
   ByVal item As XmlSchemaObject _
public void Remove(
 XmlSchemaObject item
public: void Remove(
 XmlSchemaObject* item
public function Remove(
   item : XmlSchemaObject


The XmlSchemaObject to remove.


This method performs a linear search; therefore, the average execution time is proportional to Count. That is, this method is an O(n) operation, where n is Count.

This method determines equality by calling Object.Equals.The elements that follow the removed element move up to occupy the vacated spot.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

XmlSchemaObjectCollection Class | XmlSchemaObjectCollection Members | System.Xml.Schema Namespace