OrderedDictionary<TKey,TValue>.KeyCollection.IList<TKey>.IndexOf 方法

定义

确定 IList<T>中特定项的索引。

 virtual int System.Collections.Generic.IList<TKey>.IndexOf(TKey item) = System::Collections::Generic::IList<TKey>::IndexOf;
int IList<TKey>.IndexOf(TKey item);
abstract member System.Collections.Generic.IList<TKey>.IndexOf : 'Key -> int
override this.System.Collections.Generic.IList<TKey>.IndexOf : 'Key -> int
Function IndexOf (item As TKey) As Integer Implements IList(Of TKey).IndexOf

参数

item
TKey

IList<T>中查找的对象。

返回

如果在列表中找到 item 的索引;否则为 -1。

实现

适用于