System.Data.SqlClient.SqlDataReader.GetValue Method

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

Syntax

public override object GetValue (int i)

Parameters

i
The zero-based column ordinal.

Returns

This method returns DBNull for null database columns.

Remarks

SqlDataReader.GetValue(int) returns data using the .NET Framework types.

Requirements

Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0