Поделиться через


OrderedDictionary<TKey,TValue>.IList<KeyValuePair<TKey,TValue>>.IndexOf Метод

Определение

Определяет индекс определенного элемента в IList<T>.

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

Параметры

item
KeyValuePair<TKey,TValue>

Объект, который нужно найти в IList<T>.

Возвращаемое значение

Индекс item, если он найден в списке; в противном случае — значение -1.

Реализации

Применяется к