Searches for the specified object and returns the zero-based index of the first occurrence within the entire
ListWithEvents<T>.
'Declaration
Public Function IndexOf( _
ByVal As _
) As Integer
'Usage
Dim instance As ListWithEvents(Of T)
Dim item As
Dim value As Integer
value = instance.IndexOf(item)
Parameters
- item
- The object to locate in the ListWithEvents<T>. The value can be null for reference types.
Return Value
The zero-based index of the first occurrence of item within the
ListWithEvents<T>, if found; otherwise, -1.