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 _
)
[C#]
public void Remove(
 XmlSchemaObject item
);
[C++]
public: void Remove(
 XmlSchemaObject* item
);
[JScript]
public function Remove(
   item : XmlSchemaObject
);

Parameters

item
The XmlSchemaObject to remove.

Remarks

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.

Requirements

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

Show: