Partage via


OrderedDictionary<TKey,TValue>.IndexOf(TKey) Méthode

Définition

Détermine l’index d’une clé spécifique dans le OrderedDictionary<TKey,TValue>.

public:
 int IndexOf(TKey key);
public int IndexOf (TKey key);
member this.IndexOf : 'Key -> int
Public Function IndexOf (key As TKey) As Integer

Paramètres

key
TKey

Clé à localiser.

Retours

Index de key s’il est trouvé ; sinon, -1.

Exceptions

key est null.

S’applique à