IndexOf Method (FieldCollection<T>)
Gets the index in the collection of the specified , if it exists in the collection.
'Declaration
Public Function IndexOf( _
ByVal As _
) As Integer
'Usage
Dim instance As FieldCollection(Of T)
Dim value As T
Dim value As Integer
value = instance.IndexOf(value)
Parameters
- value
- The to locate in the collection.
Return Value
The index in the collection of the specified object, if found; otherwise, -1.