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

実装

例外

index は、 IList内の有効なインデックスではありません。

ICollectionは読み取り専用です。

注釈

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

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

適用対象