List<(Of <(<'T>)>)>..::..IndexOf Method (T, Int32)
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the List<(Of <(<'T>)>)> that extends from the specified index to the last element.
Namespace:
System.Collections.GenericAssembly: Bridge (in Bridge.dll)
Syntax
Parameters
- item
- Type: T
The object to locate in the List<(Of <(<'T>)>)>. The value can be null for reference types.
- startIndex
- Type: System..::..Int32
Return Value
The zero-based index of the first occurrence of item within the range of elements in the List<(Of <(<'T>)>)> that extends from index to the last element, if found; otherwise, –1.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | index is outside the range of valid indexes for the List<(Of <(<'T>)>)>. |