System::Collections::CollectionBase::ListImpl::IndexOf method

ListImpl::IndexOf method

Searches for the specified element and returns the zero-based index of the first occurrence within the entire collection.

int32_t System::Collections::CollectionBase<T>::ListImpl::IndexOf(const T &value)
ParameterTypeDescription
valueconst T&The element to locate in the collection.

ReturnValue

The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.

See Also