3fcc5286 bd6b ae2d 5428 1d19779df4a1 - akesseler/Plexdata.CsvParser GitHub Wiki
This method tries to write given container into given file.
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
public static void Write(
CsvContainer container,
string filename,
CsvSettings settings
)
- container
- Type: Plexdata.CsvParser.Processors.CsvContainer
The container to be written to the CSV file. - filename
- Type: System.String
The fully qualified path of the output file. - settings
- Type: Plexdata.CsvParser.Processors.CsvSettings
The settings to be used to generate the output of the CSV file.
Exception | Condition |
---|---|
ArgumentException | This exception is thrown in case of given filename is invalid. |
InvalidOperationException | This exception is thrown in case of given file could not be deleted. Another reason could be the case when property parsing fails. |
ArgumentNullException | This exception is thrown if given container is . |
This method performes writing of data using given settings. But keep in mind, a possible existing file is overwritten.
CsvWriter Class
Write Overload
Plexdata.CsvParser.Processors Namespace