Class MaxFieldSizeAttribute
- Namespace
- CsvHelper.Configuration.Attributes
- Assembly
- CsvHelper.dll
Gets or sets the maximum size of a field. Defaults to 0, indicating maximum field size is not checked.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class MaxFieldSizeAttribute : Attribute, IClassMapper
- Inheritance
-
MaxFieldSizeAttribute
- Implements
- Inherited Members
Constructors
MaxFieldSizeAttribute(double)
Gets or sets the maximum size of a field.
public MaxFieldSizeAttribute(double maxFieldSize)
Parameters
maxFieldSize
double
Properties
MaxFieldSize
Gets or sets the maximum size of a field.
public double MaxFieldSize { get; }
Property Value
Methods
ApplyTo(CsvConfiguration)
public void ApplyTo(CsvConfiguration configuration)
Parameters
configuration
CsvConfiguration