GroupCollection.IList.IndexOf(Object) 方法

定义

确定组集合中特定组的索引。Determines the index of a specific group in the group collection.

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

参数

value
Object

要在组集合中查找的组。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 接口时使用。It can be used only when the GroupCollection instance is cast to an IList interface.

适用于