SynchronizedCollection<T>.IList.IndexOf(Object) 方法

定义

确定集合中某个元素的从零开始的索引。

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

参数

value
Object

集合中要确定其索引的元素。

返回

Int32

如果在集合中找到,则为 value 的索引;否则为 -1。

实现

适用于