Collection.IList.IndexOf(Object) Collection.IList.IndexOf(Object) Collection.IList.IndexOf(Object) Method

定义

确定 Collection 对象中特定项的索引。Determines the index of a specific item in the Collection object.

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

参数

value
Object Object Object

要在 Object 对象中查找的 CollectionThe Object to locate in the Collection object.

返回

如果在集合中找到该对象,则为 value;否则为 -1。The index of value if found in the collection; otherwise, -1.

注解

此方法确定Collection对象中特定项的索引。This method determines the index of a specific item in the Collection object.

适用于

另请参阅