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

取得または設定する要素の、0 から始まるインデックス番号。

プロパティ値

指定したインデックスにある Object です。

実装

例外

indexIList の有効なインデックスではありません。

ICollection は読み取り専用です。

注釈

このプロパティでは、myCollection[index] という構文を使用して、コレクション内の特定の要素にアクセスできます。

C# 言語では、this プロパティを実装する代わりに、Item キーワードを使用してインデクサーを定義します。 Visual Basic は、Item を既定のプロパティとして実装しており、同様のインデックス機能を提供します。

適用対象