SchemaNameCollection::IList::Insert Method (Int32, Object^)

 

Inserts an item to the list at the specified index.

Namespace:   System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

private:
virtual void Insert(
	int index,
	Object^ value
) sealed = IList::Insert

Parameters

index
Type: System::Int32

The zero-based index at which value should be inserted.

value
Type: System::Object^

The item to insert into the list.

If index equals the number of items in the list, then value is appended to the end.

In collections of contiguous elements, such as lists, the elements that follow the removed element move up to occupy the vacated spot. If the collection is indexed, the indexes of the elements that are moved are also updated.

.NET Framework
Available since 1.1
Return to top
Show: