GetValue(int) Method

Syntax:

public Object GetValue(int ordinal)

Description:

Gets the value of the specified column as an Object.

Parameters:

ordinal

Type: System.Int32

The zero-base column ordinal

Return Value:

Type: System.Object

The value 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.GetValue