Partage via


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

Définition

Détermine l’index d’un élément spécifique dans le 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

Paramètres

item
KeyValuePair<TKey,TValue>

Objet à localiser dans le IList<T>.

Retours

Index de item s’il se trouve dans la liste ; sinon, -1.

Implémente

S’applique à