IndexOf()

IList::IndexOf(SharedPtr<System::Object>) const method

Gets the first index of the specified item.

virtual int System::Collections::IList::IndexOf(SharedPtr<System::Object> item) const =0

Arguments

ParameterTypeDescription
itemSharedPtr<System::Object>The item to look for.

Return Value

The index of the first occurrence of the specified item, otherwise -1.

See Also