Returns the value for the current row in the Reader for the specified column index
Namespace:
DbNetLink.DataAssembly: DbNetLink.DbNetData (in DbNetLink.DbNetData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public Object ReaderValue( int ColumnIndex ) |
| Visual Basic (Declaration) |
|---|
Public Function ReaderValue ( _ ColumnIndex As Integer _ ) As Object |
| Visual C++ |
|---|
public: Object^ ReaderValue( int ColumnIndex ) |
Parameters
- ColumnIndex
- Type: System..::.Int32
The inedx of the column
Return Value
The reader column value
Examples
DbNetData Db = new DbNetData( ConfigurationManager.ConnectionStrings["nwind"] ); Db.Open(); Db.ExecuteSingletonQuery("select count(*) from subscribers"); SubsriberCount.Value = Db.ReaderValue(0); Db.Close();