CSV Engine Documentation Contents
AldenSystems.CSVEngine
CSV Engine Class Library

Filter.AddCondition Method (String, String)

Filter class is available in commercial version only.

Adds the expression as a matching condition for the specified column.

[Visual Basic]
Overloads Public Sub AddCondition( _
ByVal columnName As String, _
ByVal expression As String _
)
[C#]
public void AddCondition(
string columnName,
string expression
);

Parameters

columnName
The name of the column for which the expression applies.
expression
The expression to evaluate.

Remarks

This method will fail silently if no header has been supplied to the Filter.

Exceptions

Exception Type Condition
ArgumentException Thrown if the specified column name is not defined.
ArgumentNullException Thrown if either columnName or expression is null.

See Also

Filter Class | AldenSystems.CSVEngine Namespace | Filter.AddCondition Overload List