OrderedDictionary<TKey,TValue>.KeyCollection.IList<TKey>.IndexOf Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Determina o índice de um item específico no IList<T>.
virtual int System.Collections.Generic.IList<TKey>.IndexOf(TKey item) = System::Collections::Generic::IList<TKey>::IndexOf;
int IList<TKey>.IndexOf(TKey item);
abstract member System.Collections.Generic.IList<TKey>.IndexOf : 'Key -> int
override this.System.Collections.Generic.IList<TKey>.IndexOf : 'Key -> int
Function IndexOf (item As TKey) As Integer Implements IList(Of TKey).IndexOf
Parâmetros
- item
- TKey
O objeto a localizar no IList<T>.
Devoluções
O índice de item se for encontrado na lista; caso contrário, -1.