SynchronizedCollection<T>.RemoveAt Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes an item at a specified index from the collection.

Namespace:   System.Collections.Generic
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public void RemoveAt(
	int index
)

Parameters

index
Type: System.Int32

The zero-based index of the element to be retrieved from the collection.

Exception Condition
ArgumentOutOfRangeException

The index specified is less than zero or greater than the number of items in the collection.

The elements in the collection that follow the removed element move up to occupy the vacated spot and their indices are updated accordingly.

.NET Framework
Available since 3.0
Return to top
Show: