Export (0) Print
Expand All

OleDbDataReader.GetValue Method

Gets the value of the column at the specified ordinal in its native format.

[Visual Basic]
Public Overridable Function GetValue( _
   ByVal ordinal As Integer _
) As Object Implements IDataRecord.GetValue
[C#]
public virtual object GetValue(
 int ordinal
);
[C++]
public: virtual Object* GetValue(
 int ordinal
);
[JScript]
public function GetValue(
   ordinal : int
) : Object;

Parameters

ordinal
The zero-based column ordinal.

Return Value

The value to return.

Implements

IDataRecord.GetValue

Remarks

This method returns DBNull for null database columns.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OleDbDataReader Class | OleDbDataReader Members | System.Data.OleDb Namespace

Show:
© 2014 Microsoft