語言

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

要取得或設定的元素的零基指數。

屬性值

在指定的索引上。Object

實作

例外狀況

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

這是 ICollection 唯讀的。

備註

此屬性可透過以下語法存取集合中的特定元素:myCollection[index]。

C# 語言使用 this 關鍵字來定義索引器,而非實作該 Item 屬性。 Visual Basic 作為 Item 預設屬性實作,提供相同的索引功能。

適用於