GroupCollection.IList<Group>.IndexOf(Group) 方法
定义
确定组集合中特定组的索引。Determines the index of a specific group in the group collection.
virtual int System.Collections.Generic.IList<System.Text.RegularExpressions.Group>.IndexOf(System::Text::RegularExpressions::Group ^ item) = System::Collections::Generic::IList<System::Text::RegularExpressions::Group ^>::IndexOf;
int IList<Group>.IndexOf (System.Text.RegularExpressions.Group item);
abstract member System.Collections.Generic.IList<System.Text.RegularExpressions.Group>.IndexOf : System.Text.RegularExpressions.Group -> int
override this.System.Collections.Generic.IList<System.Text.RegularExpressions.Group>.IndexOf : System.Text.RegularExpressions.Group -> int
Function IndexOf (item As Group) As Integer Implements IList(Of Group).IndexOf
参数
- item
- Group
要在组集合中查找的组。The group to locate in the group collection.
返回
item 的索引(如果找到);否则为 -1。The index of the item if found; otherwise, -1.
实现
注解
此成员是显式接口成员的实现。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.