Export (0) Print
Expand All

XmlSchemaObjectCollection.Insert Method

Inserts an XmlSchemaObject to the XmlSchemaObjectCollection.

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

public void Insert(
	int index,
	XmlSchemaObject item
)

Parameters

index
Type: System.Int32

The zero-based index at which an item should be inserted.

item
Type: System.Xml.Schema.XmlSchemaObject

The XmlSchemaObject to insert.

ExceptionCondition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is greater than Count.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Show:
© 2015 Microsoft