DataTypeFromImportReaderColumn Method

Spotfire 14.3 API Reference
Converts the type of a column, from an IDataReader, to the DataType used in the Data Manager.

Namespace:  Spotfire.Dxp.Data
Assembly:  Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
public static DataType FromImportReaderColumn(
	IDataReader reader,
	int columnIndex
)

Parameters

reader
Type: System.DataIDataReader
IDataReader to get the data type from.
columnIndex
Type: SystemInt32
Index of the column.

Return Value

Type: DataType
A data type, may be Undefined or null if the reader was closed.
Remarks

Note that this is not always possible to correctly determine the DataType from type since all the date and time types share the same representation type.
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference