GroupCollection.IList<Group>.Item[Int32] 属性

定义

获取集合中指定位置的组。Gets the group at the specified position in the collection.

property System::Text::RegularExpressions::Group ^ System::Collections::Generic::IList<System::Text::RegularExpressions::Group>::Item[int] { System::Text::RegularExpressions::Group ^ get(int index); void set(int index, System::Text::RegularExpressions::Group ^ value); };
System.Text.RegularExpressions.Group System.Collections.Generic.IList<System.Text.RegularExpressions.Group>.Item[int index] { get; set; }
member this.System.Collections.Generic.IList<System.Text.RegularExpressions.Group>.Item(int) : System.Text.RegularExpressions.Group with get, set
 Property Item(index As Integer) As Group Implements IList(Of Group).Item

参数

index
Int32

组集合中组的从零开始的索引。The zero-based index of the group in the group collection.

属性值

Group

所需位置中的组。The group in the desired position.

实现

例外

无法设置项。Cannot set an item. 这是一个只读集合。This is a read-only collection.

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 GroupCollection 实例被强制转换为 IList<T> 接口时使用。It can be used only when the GroupCollection instance is cast to an IList<T> interface.

适用于