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 為唯讀。

備註

在相鄰元素的集合中,例如清單,接在移除的元素之後的元素會向上移動以佔用空出的位置。 如果集合具有索引,則移動之項目的索引也會更新。 集合的項目若在概念上群組成 Bucket (例如雜湊資料表),則不適用這項行為。

適用於