System.Xml.Schema.XmlSchemaObjectCollection.Remove Method

Removes an System.Xml.Schema.XmlSchemaObject from the XmlSchemaObjectCollection.

Syntax

public void Remove (XmlSchemaObject item)

Parameters

item
The System.Xml.Schema.XmlSchemaObject to remove.

Remarks

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

This method determines equality by calling object.Equals(object, object).

The elements that follow the removed element move up to occupy the vacated spot.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0