Class ExcelColumnAttribute
Maps a property to a worksheet column by header name. Apply more than once to accept alternate header spellings for the same property.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
public sealed class ExcelColumnAttribute : Attribute
- Inheritance
-
ExcelColumnAttribute
- Inherited Members
Constructors
ExcelColumnAttribute(string)
Creates an attribute that maps the property to the column with the given header name.
public ExcelColumnAttribute(string name)
Parameters
namestring
Properties
Name
The header name this attribute matches.
public string Name { get; }