GetValue(Int32) method

Returns the value of the specified column as an Object.

Syntax
Visual Basic

Public Overrides Function GetValue( _
   ByVal ordinal As Integer _
) As Object
C#

public override object GetValue(
   int ordinal
);
Parameters
  • ordinal   An ordinal number indicating the column from which the value is obtained. The numbering is zero-based.

Return value

The value of the specified column as an object.

Remarks

This method returns DBNull for NULL database columns.

See also