CsvReader..::..GetFieldIndex Method

Gets the field index for the provided header.

Namespace:  LumenWorks.Framework.IO.Csv
Assembly:  LumenWorks.Framework.IO (in LumenWorks.Framework.IO.dll)

Syntax


public int GetFieldIndex(
	string header
)
Public Function GetFieldIndex ( _
	header As String _
) As Integer
public:
int^ GetFieldIndex(
	String^ header
)

Parameters

header
Type: String
The header to look for.

Return Value

The field index for the provided header. -1 if not found.

Exceptions


ExceptionCondition
ObjectDisposedException The instance has been disposed of.