ActivityCollection.IList<Activity>.Item[Int32] 属性
定义
获取或设置指定索引处的元素。Gets or sets the element at the specified index.
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
要获取或设置的元素的从零开始的索引。The zero-based index of the element to get or set.
属性值
指定索引处的 Object。The Object at the specified index.
实现
例外
ICollection 为只读。The ICollection is read-only.
注解
通过使用以下语法,此属性提供访问集合中特定元素的能力:myCollection[index]。This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index].
C# 语言使用 this 关键字来定义索引器,而不是实现 Item 属性。The C# language uses the this keyword to define the indexers instead of implementing the Item property. Visual Basic 将 Item 实现为默认属性,该属性提供相同的索引功能。Visual Basic implements Item as a default property, which provides the same indexing functionality.