XmlSchemaObjectCollection.Remove(XmlSchemaObject) Method

Definition

Removes an XmlSchemaObject from the XmlSchemaObjectCollection.

C#
public void Remove(System.Xml.Schema.XmlSchemaObject item);

Parameters

item
XmlSchemaObject

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 Equals.

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

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1