Compartir a través de


OrderedDictionary<TKey,TValue>.IList<KeyValuePair<TKey,TValue>>.IndexOf Método

Definición

Determina el índice de un elemento específico del 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

Parámetros

item
KeyValuePair<TKey,TValue>

Objeto que se va a buscar en el IList<T>.

Devoluciones

Índice de item si se encuentra en la lista; de lo contrario, -1.

Implementaciones

Se aplica a