# CsvRecordHeader

Resolved CSV header metadata for a transient-record projection.

Class 

`OfficeIMO.CSV`

**Namespace**

`OfficeIMO.CSV`

**Assembly**

`OfficeIMO.CSV`

**Source revision**

`90fbca630045` with working tree changes

**Source**

[CsvDocument.ParallelRecords.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.CSV/CsvDocument.ParallelRecords.cs#L50)

**Modifiers**

sealed

**Attributes**

`DefaultMember("Item")`

Resolved CSV header metadata for a transient-record projection.

## Inheritance

- object
- CsvRecordHeader

## Usage

Explore 4 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 4

- Method [CsvRecordAccumulatorBuilder<T>.BeginInvoke](/api/csv/officeimo-csv-csvrecordaccumulatorbuilder/#method-begininvoke-csvrecordheader-asynccallback-object) parameter `header`
- Method [CsvRecordAccumulatorBuilder<T>.Invoke](/api/csv/officeimo-csv-csvrecordaccumulatorbuilder/#method-invoke-csvrecordheader) parameter `header`
- Method [CsvRecordFactoryBuilder<T>.BeginInvoke](/api/csv/officeimo-csv-csvrecordfactorybuilder/#method-begininvoke-csvrecordheader-asynccallback-object) parameter `header`
- Method [CsvRecordFactoryBuilder<T>.Invoke](/api/csv/officeimo-csv-csvrecordfactorybuilder/#method-invoke-csvrecordheader) parameter `header`

Filter members 

Show inherited

## Methods

`public int GetOrdinal(string name)` [#](#method-getordinal-string)

[CsvDocument.ParallelRecords.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.CSV/CsvDocument.ParallelRecords.cs#L50)

Returns the ordinal for a column name.

Parameters

**name string required**

Returns

`int`

`public bool TryGetOrdinal(string name, out int ordinal)` [#](#method-trygetordinal-string-int32)

[CsvDocument.ParallelRecords.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.CSV/CsvDocument.ParallelRecords.cs#L60)

Attempts to find a column ordinal by name.

Parameters

**name string required**

**ordinal int required**

Returns

`bool`

## 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 int Count { get; }` [#](#property-count)

[CsvDocument.ParallelRecords.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.CSV/CsvDocument.ParallelRecords.cs#L42)

Gets the number of columns.

`public string this[int ordinal] { get; }` [#](#property-item-int32)

[CsvDocument.ParallelRecords.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.CSV/CsvDocument.ParallelRecords.cs#L45)

Gets a column name by ordinal.

Parameters

**ordinal int required**

<!-- PowerForge markdown artifact sha256:12BEAA86105A57B061F8E0B740FF4496B2A893BD3259C78133E26A41E38DDD70 -->
