# CsvDataTableOptions

Controls how a CsvDocument is projected into a DataTable.

Class 

`OfficeIMO.CSV`

**Namespace**

`OfficeIMO.CSV`

**Assembly**

`OfficeIMO.CSV`

**Source revision**

`07c6bff0a794` with working tree changes

**Source**

[CsvDataTableOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.CSV/CsvDataTableOptions.cs#L26)

**Modifiers**

sealed

Controls how a [CsvDocument](/api/csv/officeimo-csv-csvdocument/) is projected into a DataTable.

## Inheritance

- object
- CsvDataTableOptions

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [CsvDocument.ToDataTable](/api/csv/officeimo-csv-csvdocument/#method-todatatable-officeimo-csv-csvdatatableoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public CsvDataTableOptions()` [#](#constructor-ctor)

[CsvDataTableOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.CSV/CsvDataTableOptions.cs#L26)

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

## Properties

`public string? TableName { get; set; }` [#](#property-tablename)

[CsvDataTableOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.CSV/CsvDataTableOptions.cs#L11)

Gets or sets the DataTable name. Defaults to CsvData.

`public CsvSchema? Schema { get; set; }` [#](#property-schema)

[CsvDataTableOptions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.CSV/CsvDataTableOptions.cs#L16)

Gets or sets an explicit schema used for typed DataTable columns.

`public bool InferSchema { get; set; }` [#](#property-inferschema)

[CsvDataTableOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.CSV/CsvDataTableOptions.cs#L21)

Gets or sets a value indicating whether schema should be inferred before creating columns.

`public int SchemaSampleRows { get; set; }` [#](#property-schemasamplerows)

[CsvDataTableOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.CSV/CsvDataTableOptions.cs#L26)

Gets or sets the maximum row count inspected when [CsvDataTableOptions.InferSchema](/api/csv/officeimo-csv-csvdatatableoptions/) is enabled.

<!-- PowerForge markdown artifact sha256:BB9A83A84ED0CD60CDF155314877FCB318FA27FAD5138072C2838E3425385922 -->
