CSV Engine Documentation Contents
AldenSystems.CSVEngine
CSV Engine Class Library

Header.GetIndex Method

Gets the position of the column with the specified name.

[Visual Basic]
Public Function GetIndex( _
ByVal columnName As String _
) As Integer
[C#]
public int GetIndex(
string columnName
);

Parameters

columnName
The name of the column for which to obtain the position

Return Value

The position of the column.

Exceptions

Exception Type Condition
ArgumentException Thrown if the column specified in columnName doesn't exist.

See Also

Header Class | AldenSystems.CSVEngine Namespace