ActivityCollection.Item[] プロパティ

定義

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内のキー。

注釈

指定したキーを持つActivityICollectionがない場合は、例外が発生します。

適用対象

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 が読み取り専用です。

ObjectではないActivityに設定を試みます。

適用対象