System::Collections::ObjectModel::ReadOnlyCollection::IndexOf method

ReadOnlyCollection::IndexOf method

Looks for specific item in collection.

virtual int System::Collections::ObjectModel::ReadOnlyCollection<T>::IndexOf(const T &item) const override
ParameterTypeDescription
itemconst T&Item to look for.

ReturnValue

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

See Also