SynchronizedCollection<T>.RemoveAt(Int32) 方法

定义

从集合中移除位于指定索引处的项。

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)

参数

index
Int32

要从集合中检索的元素的从零开始的索引。

实现

例外

指定的 index 项数小于零或大于集合中的项数。

注解

紧随移除元素的集合中的元素向上移动以占用空置的点,其索引会相应地更新。

适用于