MaxFieldSizeAttribute Class
Gets or sets the maximum size of a field. Defaults to 0, indicating maximum field size is not checked.
Namespace
CsvHelper.Configuration.Attributes
Interfaces
Base Types
  • Attribute
graph BT Type-->Base0["Attribute"] Type-.->Interface0["IClassMapper"] click Interface0 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IClassMapper" Type["MaxFieldSizeAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class MaxFieldSizeAttribute : Attribute, IClassMapper

Attributes

Type Description
AttributeUsage

Constructors

Name Summary
MaxFieldSizeAttribute(double) Gets or sets the maximum size of a field.

Properties

Name Property Type Summary
MaxFieldSize double
Gets or sets the maximum size of a field.

Methods

Name Return Value Summary
ApplyTo(CsvConfiguration) void
Applies configuration.