# ExcelColumnAttribute

Declares explicit spreadsheet header aliases for typed read mapping.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`5e5a2dda74b3` with working tree changes

**Source**

[ExcelColumnAttribute.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Excel/ExcelColumnAttribute.cs#L23)

**Base**

`Attribute`

**Implements**

`IDataColumnAliasProvider`

**Modifiers**

sealed

**Attributes**

`AttributeUsage(128, AllowMultiple = false, Inherited = true)`

Declares explicit spreadsheet header aliases for typed read mapping.

## Inheritance

- Attribute
- ExcelColumnAttribute

Filter members 

Show inherited

## Constructors

`public ExcelColumnAttribute(string name, params string[] aliases)` [#](#constructor-ctor-string-string)

[ExcelColumnAttribute.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Excel/ExcelColumnAttribute.cs#L23)

Creates a new explicit header mapping definition.

Parameters

**name string required**

**aliases string[] required**

## Inherited Methods

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

Inherited from Attribute

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Attribute

Returns

`int`

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

Inherited from object

Returns

`Type`

`public virtual bool IsDefaultAttribute()` [#](#method-isdefaultattribute)

Inherited from Attribute

Returns

`bool`

`public virtual bool Match(object? obj)` [#](#method-match-object)

Inherited from Attribute

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; }` [#](#property-name)

[ExcelColumnAttribute.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Excel/ExcelColumnAttribute.cs#L10)

Primary header name to map to the decorated property.

`public IReadOnlyList<string> Aliases { get; }` [#](#property-aliases)

[ExcelColumnAttribute.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Excel/ExcelColumnAttribute.cs#L15)

Additional header aliases to map to the decorated property.

## Inherited Properties

`public virtual object TypeId { get; }` [#](#property-typeid)

Inherited from Attribute

<!-- PowerForge markdown artifact sha256:21DD65791D42A25B57A1F4DB2D3839F44AFE34309719FF879F6D46EF7846461D -->
