Class InvalidDataTypeException
This exception is used for cases where more that one data type is set in the exported DataTable.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.FormatProviders
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class InvalidDataTypeException : Exception, ISerializable, _Exception
Constructors
InvalidDataTypeException(String, String, String, Int32, Int32)
Initializes a new instance on the InvalidDataTypeException class with the appropriate data.
Declaration
public InvalidDataTypeException(string message, string expectedDataType, string currentDataType, int columnIndex, int rowIndex)
Parameters
System.String
message
The message that describes the error. |
System.String
expectedDataType
The expected DataType. |
System.String
currentDataType
The data type of the current cell. |
System.Int32
columnIndex
The index of the column where the invalid data is. |
System.Int32
rowIndex
The index of the row where the invalid data is. |
Properties
ColumnIndex
Gets the index of the column where the invalid data is.
Declaration
public int ColumnIndex { get; }
Property Value
System.Int32
|
CurrentDataType
Gets the data type that the cell currently contains.
Declaration
public string CurrentDataType { get; }
Property Value
System.String
|
ExpectedDataType
Gets the data type that is expected for the exported column.
Declaration
public string ExpectedDataType { get; }
Property Value
System.String
|
RowIndex
Gets the index of the row where the invalid data is.
Declaration
public int RowIndex { get; }
Property Value
System.Int32
|