System::Collections::ObjectModel::Collection::IndexOf‑metod

Collection::IndexOf method

Söker efter element i samlingen.

int System::Collections::ObjectModel::Collection<T>::IndexOf(const T &item) const override
ParameterTypBeskrivning
objektconst T&Objekt att söka efter.

ReturnValue

Index of first occurrence of specified item or -1 if not found.

Se även