'Declaration Public Overloads Function IndexOf( _ ByVal columnName As String, _ ByVal throwIfNotFound As Boolean _ ) As Integer
public int IndexOf( string columnName, bool throwIfNotFound )
Parameters
- columnName
- Column name to look for (case-insensitive).
- throwIfNotFound
- Whether to throw and exception if the column cannot be found.
Return Value
Index of the column that has the given name in this collection, or -1 if the collection does not contain a column with the given name.