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

要获取或设置的元素的从零开始的索引。

属性值

位于 Object 指定索引处。

实现

例外

index 不是 . 中的 IList有效索引。

ICollection 只读。

注解

此属性提供使用以下语法访问集合中的特定元素的功能:myCollection[index]。

C# 语言使用 this 关键字来定义索引器,而不是实现 Item 属性。 Visual Basic 实现 Item 为默认属性,该属性提供相同的索引功能。

适用于