OrderedDictionary<TKey,TValue>.KeyCollection.IList<TKey>.IndexOf Metoda

Definicja

Określa indeks określonego elementu w 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

Parametry

item
TKey

Obiekt do zlokalizowania w IList<T>.

Zwraca

Indeks item, jeśli znajduje się na liście; w przeciwnym razie, -1.

Implementuje

Dotyczy