SynchronizedReadOnlyCollection<T>.IndexOf(T) 方法
定义
返回某个值在集合中的第一个匹配项的索引。Returns the index of the first occurrence of a value in the collection.
public:
virtual int IndexOf(T value);
public int IndexOf (T value);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
Public Function IndexOf (value As T) As Integer
参数
- value
- T
要检索其索引的元素。The element whose index is being retrieved.
返回
value 在集合中的第一个匹配项的从零开始的索引。The zero-based index of the first occurrence of the value in the collection.