API Reference
CsvSaveOptions
Options controlling how CSV content is serialized.
Inheritance
- Object
- CsvSaveOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
- Method CsvDocument.Save
- Method CsvDocument.Save
- Method CsvDocument.SaveAsync
- Method CsvDocument.SaveAsync
- Method CsvDocument.SaveObjects
- Method CsvDocument.ToBytes
- Method CsvDocument.ToStream
- Method CsvDocument.ToString
- Method CsvDocument.WriteDataReader
- Method CsvDocument.WriteObjects
- Method CsvFile.CreateTextWriter
- Constructor CsvObjectWriter.CsvObjectWriter
Constructors
public CsvSaveOptions() #Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Char Delimiter { get; set; } #Gets or sets the field delimiter character. Default is ,.
public String DelimiterText { get; set; } #Gets or sets the field delimiter text. Leave unset to use Delimiter. Single-character values keep the optimized character delimiter path; longer values enable flexible delimiter writing.
public String NewLine { get; set; } #Gets or sets the newline sequence written between records. Default is NewLine.
public Boolean IncludeHeader { get; set; } #Gets or sets whether to include the header row when writing. Default is true.
public CultureInfo Culture { get; set; } #Gets or sets the culture used for formatting values. Defaults to InvariantCulture.
public Encoding Encoding { get; set; } #Gets or sets the text encoding used when writing to files. Defaults to UTF-8 without BOM when omitted.
public CsvCompressionType CompressionType { get; set; } #Gets or sets compression used when writing files. Default infers compression from the file extension.
public CompressionLevel CompressionLevel { get; set; } #Gets or sets the compression level used when writing compressed CSV files.
public String NullValue { get; set; } #Gets or sets the token written for null values. Defaults to an empty field.
public String DateTimeFormat { get; set; } #Gets or sets a custom date/time format used when writing DateTime and DateTimeOffset values.
public Boolean UseUtc { get; set; } #Gets or sets whether date/time values are converted to UTC before formatting.
public Boolean Append { get; set; } #Gets or sets whether file output appends to an existing CSV file.
public Boolean NoClobber { get; set; } #Gets or sets whether file output should fail if the destination already exists.
public CsvFormulaInjectionPolicy FormulaInjectionPolicy { get; set; } #Gets or sets how formula-like values are handled before writing CSV output. Default preserves values exactly.
public CsvQuoteMode QuoteMode { get; set; } #Gets or sets when fields are quoted. Default quotes only fields that need quoting.
public String[] QuoteFields { get; set; } #Gets or sets field names that should always be quoted when QuoteMode is AsNeeded.