ActivityCollection.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
按名称或索引获取项ActivityICollection。
重载
| 名称 | 说明 |
|---|---|
| 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的成员ICollectionICollection。
注解
如果指定键中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 为只读。