Export (0) Print
Expand All

IListContract<T>.RemoveAt Method

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
)

Parameters

index
Type: System.Int32

The index of the item to remove.

ExceptionCondition
IndexOutOfRangeException

index is less than zero.

-or-

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

NotSupportedException

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

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft