GroupCollection.IList<Group>.IndexOf(Group) GroupCollection.IList<Group>.IndexOf(Group) GroupCollection.IList<Group>.IndexOf(Group) Method

定义

确定组集合中特定组的索引。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);
Function IndexOf (item As Group) As Integer Implements IList(Of Group).IndexOf

参数

item
Group Group Group

要在组集合中查找的组。The group to locate in the group collection.

返回

<paramref. name="item"></paramref.> 的索引(如果找到);否则为 -1。The index of the <paramref. name="item"></paramref.> 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.

适用于