Export (0) Print
Expand All

SqlDataReader.GetValue Method

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

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

Parameters

i
The zero-based column ordinal.

Return Value

This method returns DBNull for null database columns.

Implements

IDataRecord.GetValue

Remarks

GetValue returns data using the .NET Framework types.

Requirements

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

See Also

SqlDataReader Class | SqlDataReader Members | System.Data.SqlClient Namespace

Show:
© 2014 Microsoft