Synopsis
Object value
= DataReader.GetValue(Int32 columnOrdinal);
Retrieves a single value from a column as a .NET framework type. This
method is rarely needed because the indexer provides more convenient
access.
Note
Some providers also provide strongly typed versions of the
GetValue( )
method, which you can recognize based
on the provider prefix. For example, SQL Server provides a
GetSqlValue( )
method that retrieves a column
values as a SQL Server-specific type.