ActivityCollection.IList<Activity>.RemoveAt(Int32) 方法

定义

IList删除指定索引处的项。

 virtual void System.Collections.Generic.IList<System.Workflow.ComponentModel.Activity>.RemoveAt(int index) = System::Collections::Generic::IList<System::Workflow::ComponentModel::Activity ^>::RemoveAt;
void IList<Activity>.RemoveAt(int index);
abstract member System.Collections.Generic.IList<System.Workflow.ComponentModel.Activity>.RemoveAt : int -> unit
override this.System.Collections.Generic.IList<System.Workflow.ComponentModel.Activity>.RemoveAt : int -> unit
Sub RemoveAt (index As Integer) Implements IList(Of Activity).RemoveAt

参数

index
Int32

要移除的项的从零开始的索引。

实现

例外

index 不是 . 中的 IList有效索引。

ICollection 只读。

注解

在连续元素(如列表)的集合中,已删除元素后面的元素向上移动以占据空置的位置。 如果为集合编制索引,则移动的元素的索引也会更新。 此行为不适用于在概念上将元素分组到存储桶中的集合,例如哈希表。

适用于