GetData(int) Method

Syntax:

public DbDataReader GetData(int ordinal)

Description:

Returns a DbDataReader object for the requested column.

Parameters:

ordinal

Type: System.Int32

The zero-base column ordinal

Return Value:

Type: System.Data.Common.DbDataReader

The value of the specified column in a DbDataReader

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