GetFieldType(int) Method

Syntax:

public Type GetFieldType(int ordinal)

Description:

Gets the data type of the specified column.

Parameters:

ordinal

Type: System.Int32

The zero-base column ordinal

Return Value:

Type: System.Type

The data type of the specified column

Exceptions:

Exception Condition
InvalidOperationException The RdmDataReader is closed or there is no current row.

Reference:

For more information, reference MSDN documentation for: System.Data.Common.DbDataReader.GetFieldType