Returns the value for the current row in the Reader for the specified column name
Namespace:
DbNetLink.DataAssembly: DbNetLink.DbNetData (in DbNetLink.DbNetData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public Object ReaderValue( string ColumnName ) |
| Visual Basic (Declaration) |
|---|
Public Function ReaderValue ( _ ColumnName As String _ ) As Object |
| Visual C++ |
|---|
public: Object^ ReaderValue( String^ ColumnName ) |
Parameters
- ColumnName
- Type: System..::.String
The name of the column
Return Value
The reader column value
Examples
DbNetData Db = new DbNetData( ConfigurationManager.ConnectionStrings["nwind"] ); Db.Open(); Db.ExecuteQuery("select * from subscribers"); while ( Db.Reader.Read() ) { SendMailMessage( Daa.ReaderValue("email_address").ToString() ) } Db.Close();