SynchronizedCollection<T>.RemoveAt(Int32) Method

Definition

Removes an item at a specified index from the collection.

public:
 virtual void RemoveAt(int index);
public void RemoveAt (int index);
abstract member RemoveAt : int -> unit
override this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

Parameters

index
Int32

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

Implements

Exceptions

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

Remarks

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

Applies to