DataType FromImportReaderColumn Method TIBCO Spotfire 6.0 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: 13.19.7018.3940 (13.19.7018.3940)
Syntax

public static DataType FromImportReaderColumn(
	IDataReader reader,
	int columnIndex
)

Parameters

reader
Type: System.Data IDataReader
IDataReader to get the data type from.
columnIndex
Type: System Int32
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.
See Also