OrderedDictionary<TKey,TValue>.ValueCollection.IList<TValue>.IndexOf Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Avgör indexet för ett specifikt objekt i IList<T>.
virtual int System.Collections.Generic.IList<TValue>.IndexOf(TValue item) = System::Collections::Generic::IList<TValue>::IndexOf;
int IList<TValue>.IndexOf(TValue item);
abstract member System.Collections.Generic.IList<TValue>.IndexOf : 'Value -> int
override this.System.Collections.Generic.IList<TValue>.IndexOf : 'Value -> int
Function IndexOf (item As TValue) As Integer Implements IList(Of TValue).IndexOf
Parametrar
- item
- TValue
Objektet som ska hittas IList<T>i .
Returer
Indexet för item om det finns i listan, annars -1.