Class CsvStorageSetup
This storage setup extends FileSetupBase to specify parameters for an access to CSV files.
Inherited Members
Namespace: TeleScope.Persistence.Csv
Assembly: TeleScope.Persistence.Csv.dll
Syntax
public class CsvStorageSetup : FileSetupBase
Constructors
| Improve this Doc View SourceCsvStorageSetup(FileInfo)
The constructor calls the according base class constructor and leaves the default settings of the property.
Declaration
public CsvStorageSetup(FileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | fileInfo | The file information, the storage is attached to. |
CsvStorageSetup(String)
The constructor calls the according base class constructor and leaves the default settings of the property.
Declaration
public CsvStorageSetup(string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | file | The file represented as string, the storage is attached to. |
Properties
| Improve this Doc View SourceEncoder
Gets or sets the encoding of the file.
Declaration
public Encoding Encoder { get; set; }
Property Value
Type | Description |
---|---|
Encoding |
HasHeader
Gets the information if the CSV storage has header information or not.
Declaration
public bool HasHeader { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Header
Gets a string that is used as heading line(s) before CSV data starts.
Declaration
public string Header { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Separator
Gets the character to identify the separation between values.
Declaration
public char Separator { get; set; }
Property Value
Type | Description |
---|---|
System.Char |
StartRow
Gets the index of the first row where the CSV data starts.
Declaration
public uint StartRow { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |