ActivityCollection.Item[] プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Activity内のICollection項目を名前またはインデックスで取得します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Item[String] |
一意のキーである文字列に基づいて、 ICollection 内のアクティビティを取得します。 |
| Item[Int32] |
インデックスに基づいて ICollection 内のアクティビティを取得または設定します。 |
Item[String]
一意のキーである文字列に基づいて、 ICollection 内のアクティビティを取得します。
public:
property System::Workflow::ComponentModel::Activity ^ default[System::String ^] { System::Workflow::ComponentModel::Activity ^ get(System::String ^ key); };
public System.Workflow.ComponentModel.Activity this[string key] { get; }
member this.Item(string) : System.Workflow.ComponentModel.Activity
Default Public ReadOnly Property Item(key As String) As Activity
パラメーター
- key
- String
ICollection内のアクティビティの一意識別子。
プロパティ値
Activityのメンバー ICollection。呼び出しで指定されたICollection内のキー。
注釈
指定したキーを持つActivityにICollectionがない場合は、例外が発生します。
適用対象
Item[Int32]
インデックスに基づいて ICollection 内のアクティビティを取得または設定します。
public:
property System::Workflow::ComponentModel::Activity ^ default[int] { System::Workflow::ComponentModel::Activity ^ get(int index); void set(int index, System::Workflow::ComponentModel::Activity ^ value); };
public System.Workflow.ComponentModel.Activity this[int index] { get; set; }
member this.Item(int) : System.Workflow.ComponentModel.Activity with get, set
Default Public Property Item(index As Integer) As Activity
パラメーター
- index
- Int32
ICollectionへの 0 から始まるインデックス。
プロパティ値
ICollection内のインデックスが呼び出しで指定されたICollectionのメンバー アクティビティ。
実装
例外
index は、 IListの有効なインデックスではありません。
プロパティが設定され、 IList が読み取り専用です。