System::Collections::Generic::IList::IndexOf metod

IList::IndexOf method

Hämtar index för första förekomsten av objektet i behållaren.

virtual int System::Collections::Generic::IList<T>::IndexOf(const T &item) const =0
ParameterTypBeskrivning
objektconst T&Objekt att söka efter.

ReturnValue

Index of first appearance of item in container or -1 if not found.

Se även