System.Xml.Schema.XmlSchemaObjectCollection.Insert Method

Inserts an System.Xml.Schema.XmlSchemaObject to the XmlSchemaObjectCollection.

Syntax

public void Insert (int index, XmlSchemaObject item)

Parameters

index
The zero-based index at which an item should be inserted.
item
The System.Xml.Schema.XmlSchemaObject to insert.

Remarks

If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array before the new element is inserted.

If index is equal to Count, value is added to the end of XmlSchemaObjectCollection.

The elements that follow the insertion point move down to accommodate the new element.

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