Click or drag to resize

FixedRecordOptions Class

This class allows you to set some options of the fixed length records but at runtime. With this options the library is more flexible than never.
Inheritance Hierarchy

Namespace:  FileHelpers.Options
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public sealed class FixedRecordOptions : RecordOptions

The FixedRecordOptions type exposes the following members.

Properties
  NameDescription
Public propertyFieldCount
The number of fields of the record type.
(Inherited from RecordOptions.)
Public propertyFields (Inherited from RecordOptions.)
Public propertyFieldsNames
Returns an string array with the fields names. Note : Do NOT change the values of the array, clone it first if needed
(Inherited from RecordOptions.)
Public propertyFieldsTypes
Returns a Type[] array with the fields types. Note : Do NOT change the values of the array, clone it first if needed
(Inherited from RecordOptions.)
Public propertyFixedMode
Indicates the behavior when variable length records are found in a [FixedLengthRecordAttribute]. (Note: nothing in common with [FieldOptional])
Public propertyIgnoreCommentedLines
Indicates that the engine must ignore the lines with this comment marker.
(Inherited from RecordOptions.)
Public propertyIgnoreEmptyLines
Indicates that the engine must ignore the empty lines while reading.
(Inherited from RecordOptions.)
Public propertyIgnoreFirstLines
Indicates the number of first lines to be discarded.
(Inherited from RecordOptions.)
Public propertyIgnoreLastLines
Indicates the number of lines at the end of file to be discarded.
(Inherited from RecordOptions.)
Public propertyRecordCondition
Used to tell the engine which records must be included or excluded while reading.
(Inherited from RecordOptions.)
Public propertyRecordLength
The sum of the individual field lengths.
Top
Methods
  NameDescription
Public methodRecordToString
Allows the creating of a record string of the given record. Is useful when your want to log errors to a plan text file or database
(Inherited from RecordOptions.)
Public methodRecordToValues
Allows to get an object[] with the values of the fields in the record
(Inherited from RecordOptions.)
Public methodRemoveField (Inherited from RecordOptions.)
Top
See Also