System::Collections::ObjectModel::ReadOnlyCollection::IndexOf metod

ReadOnlyCollection::IndexOf method

Söker efter ett specifikt objekt i samlingen.

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

ReturnValue

Index of the first occurrence of specified item or negative value if not found.

Se även