Skip to content

Enum ToCollectionConversionFailureStrategy

Namespace: OfficeOpenXml.Export.ToCollection
Assembly: EPPlus.dll

How conversion failures should be handled when mapping properties in the ToCollection method.

public enum ToCollectionConversionFailureStrategy

Fields

Exception = 0

Throw an Exception if the conversion fails. Blank values will return the default value for the type. An EPPlusDataTypeConvertionException will be thrown on any datatype conversion failure when mapping properties.

SetDefaultValue = 1

Set the default value for the property.