Returns the string value for the current row in the Reader for the specified column name

Namespace:  DbNetLink.Data
Assembly:  DbNetLink.DbNetData (in DbNetLink.DbNetData.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public string ReaderString(
	string ColumnName
)
Visual Basic (Declaration)
Public Function ReaderString ( _
	ColumnName As String _
) As String
Visual C++
public:
String^ ReaderString(
	String^ ColumnName
)

Parameters

ColumnName
Type: System..::.String

The name of the column

Return Value

The reader column value string

Examples

CopyC#
DbNetData Db = new DbNetData( ConfigurationManager.ConnectionStrings["nwind"] );
Db.Open();
Db.ExecuteQuery("select * from subscribers");
while ( Db.Reader.Read() )
{
    SendMailMessage( Daa.ReaderString("email_address") )
}
Db.Close();

See Also