CsvBadDataAction Enum

Specifies what the reader does with malformed data, as returned by CsvReaderOptions.BadDataHandler.

public enum CsvBadDataAction

Fields

NameValueDescription
Throw0The reader throws the CsvException of CsvBadDataContext.Exception, as in strict mode.
Accept1The data is read as when CsvReaderOptions.Strict is false, and the record is returned.
Skip2The record is not returned, and the reader continues with the next record.