CSV Engine Documentation Contents
AldenSystems.CSVEngine
CSV Engine Class Library

Header.SetName Method

Sets the name of an existing column at the specified position.

[Visual Basic]
Public Sub SetName( _
ByVal columnIndex As Integer, _
ByVal columnName As String _
)
[C#]
public void SetName(
int columnIndex,
string columnName
);

Parameters

columnIndex
The position of the column to rename
columnName
The name to apply for the column

Exceptions

Exception Type Condition
ArgumentOutOfRangeException Thrown if columnIndex is less than zero or greater than the current number of Columns.
ArgumentNullException Thrown if columnName is null.

See Also

Header Class | AldenSystems.CSVEngine Namespace