GetDataTypeName(int) Method

Syntax:

public string GetDataTypeName(int ordinal)

Description:

Gets the name of the data type of the specified column

Parameters:

ordinal

Type: System.Int32

The zero-base column ordinal

Return Value:

Type: System.String

The string representing the name of the data type.

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.GetDataTypeName