XmlSchemaObjectCollection.Remove Method (XmlSchemaObject)

 

Removes an XmlSchemaObject from the XmlSchemaObjectCollection.

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

public void Remove(
	XmlSchemaObject item
)

Parameters

item
Type: System.Xml.Schema.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 Equals.

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

.NET Framework
Available since 1.1
Return to top
Show: