ActivityCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在 By Name 或索引中取得項目ActivityICollection。
多載
| 名稱 | Description |
|---|---|
| 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。
屬性值
一個成員ActivityICollection;呼叫中指定的金鑰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。
屬性值
呼叫中指定了 的成員活動 ICollection,其索引在 ICollection 中。
實作
例外狀況
index 在 中 不是有效的指標 IList。
屬性為設定,且為 IList 唯讀。