ActivityCollection.IList<Activity>.Item[Int32] 屬性

定義

在指定的索引位置上取得或設定項目。

property System::Workflow::ComponentModel::Activity ^ System::Collections::Generic::IList<System::Workflow::ComponentModel::Activity>::Item[int] { System::Workflow::ComponentModel::Activity ^ get(int index); void set(int index, System::Workflow::ComponentModel::Activity ^ value); };
System.Workflow.ComponentModel.Activity System.Collections.Generic.IList<System.Workflow.ComponentModel.Activity>.Item[int index] { get; set; }
member this.System.Collections.Generic.IList<System.Workflow.ComponentModel.Activity>.Item(int) : System.Workflow.ComponentModel.Activity with get, set
 Property Item(index As Integer) As Activity Implements IList(Of Activity).Item

參數

index
Int32

要取得或設定的以零為起始元素索引。

屬性值

Activity

指定之索引處的 Object

實作

例外狀況

index 不是 IList 中的有效索引。

ICollection 為唯讀。

備註

這個屬性可以使用語法 myCollection[index] 提供存取集合中特定元素的能力。

C# 語言使用 this 關鍵字定義索引,而不必實作 Item 屬性。 Visual Basic 會將 Item 實作為預設屬性,這樣會提供相同的索引功能。

適用於