OrderedDictionary<TKey,TValue>.IndexOf(TKey) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.