# CsvProfile

Identifies a CSV policy preset. Presets do not change the default options.

Enum 

`OfficeIMO.CSV`

**Namespace**

`OfficeIMO.CSV`

**Assembly**

`OfficeIMO.CSV`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[CsvProfiles.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.CSV/CsvProfiles.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Identifies a CSV policy preset. Presets do not change the default options.

## Inheritance

- Enum
- CsvProfile

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [CSV Dialects and Encodings](/docs/csv/dialects-encodings/) Guide
  
  Read and write semicolon, tab and pipe-delimited CSV, detect delimiters, and choose encodings, cultures and policy profiles with OfficeIMO.CSV.

## Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Field [CsvProfile.Compatibility](/api/csv/officeimo-csv-csvprofile/#field-compatibility)
- Field [CsvProfile.Spreadsheet](/api/csv/officeimo-csv-csvprofile/#field-spreadsheet)
- Field [CsvProfile.Strict](/api/csv/officeimo-csv-csvprofile/#field-strict)
- Field [CsvProfile.Tsv](/api/csv/officeimo-csv-csvprofile/#field-tsv)

### Accepted by parameters 3

- Method [CsvProfiles.CreateLoadOptions](/api/csv/officeimo-csv-csvprofiles/#method-createloadoptions-officeimo-csv-csvprofile) parameter `profile`
- Method [CsvProfiles.CreateReaderOptions](/api/csv/officeimo-csv-csvprofiles/#method-createreaderoptions-officeimo-csv-csvprofile) parameter `profile`
- Method [CsvProfiles.CreateSaveOptions](/api/csv/officeimo-csv-csvprofiles/#method-createsaveoptions-officeimo-csv-csvprofile) parameter `profile`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const CsvProfile Strict` [#](#field-strict)

[CsvProfiles.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.CSV/CsvProfiles.cs#L9)

Reject malformed quotes and field-count mismatches, with fixed UTF-8 decoding.

Value: `0`

`public const CsvProfile Compatibility` [#](#field-compatibility)

[CsvProfiles.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.CSV/CsvProfiles.cs#L11)

Preserve the existing forgiving import and lossless serialization defaults.

Value: `1`

`public const CsvProfile Spreadsheet` [#](#field-spreadsheet)

[CsvProfiles.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.CSV/CsvProfiles.cs#L13)

Read spreadsheet exports and escape formula-like text when writing spreadsheet input.

Value: `2`

`public const CsvProfile Tsv` [#](#field-tsv)

[CsvProfiles.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.CSV/CsvProfiles.cs#L19)

IANA text/tab-separated-values: tab delimiter, no quoting and one record per line. Quote characters are data; fields cannot contain tabs or line breaks unless [CsvEscapeMode.Backslash](/api/csv/officeimo-csv-csvescapemode/) is selected on the load and save options.

Value: `3`

<!-- PowerForge markdown artifact sha256:7189D32A4D68C7B451CED22D1D4E38308CE0090D2D44D1D57E7CBF0836159686 -->
