IListContract<T>.RemoveAt Method (Int32)


Removes the item at the specified index in an IListContract<T> collection.

Namespace:   System.AddIn.Contract
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)

void RemoveAt(
	int index


Type: System.Int32

The index of the item to remove.

Exception Condition

index is less than zero.


index is equal to or greater than the return value of the GetCount method.


The IListContract<T> collection is read-only.

After you call RemoveAt, the items that follow the removed item move to occupy the vacated spot. The indexes of the items that are moved are also updated.

To determine whether an IListContract<T> collection is read-only, call the GetIsReadOnly method.

.NET Framework
Available since 3.5
Return to top