'Declaration Public Function IndexOf( _
ByVal itemThe object to locate in the collection.As T _
) As System.Int32
public System.Int32 IndexOf(
T item
)
public: System.Int32 IndexOf(
T* item
)
public:
System.Int32 IndexOf(
T^ item
)
Parameters
- item
- The object to locate in the collection.
Return Value
The index of item if item is found in the list; otherwise, -1.