Skip to content

c1d3747c 2068 d541 84dc 20ee4ad7e495

Axel Kesseler edited this page Aug 16, 2024 · 6 revisions

CsvExporter(TInstance).Save Method (IEnumerable(TInstance), String)

This method tries to save given values into given file.

Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

public static void Save(
	IEnumerable<TInstance> values,
	string filename
)

Parameters

 

values
Type: System.Collections.Generic.IEnumerable(TInstance)
The list of values to be written to the CSV file.
filename
Type: System.String
The fully qualified path of the output file.

Exceptions

 

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.
NotSupportedException This exception is thrown in case of confirming and ordering the column offsets fails.

Remarks

This method performes saving of data with default settings. Using default settings means that the header is written and a possible existing file is overwritten. Further, needed header information is taken from column attributes or from property names.

See Also

Reference

CsvExporter(TInstance) Class
Save Overload
Plexdata.CsvParser.Processors Namespace

Clone this wiki locally