MySqlDataReader.GetString Method (Int32)

MySQL Connector/Net

MySqlDataReaderGetString Method (Int32)
Gets the value of the specified column as a String object.

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9
Syntax
public override string GetString(
	int i
)
Public Overrides Function GetString ( 
	i As Integer
) As String
public:
virtual String^ GetString(
	int i
) override
abstract GetString : 
        i : int -> string 
override GetString : 
        i : int -> string 

Parameters

i
Type: SystemInt32
The zero-based column ordinal.

Return Value

Type: String
The value of the specified column.

Implements

IDataRecordGetString(Int32)
IDataRecordGetString(Int32)
Remarks

No conversions are performed; therefore, the data retrieved must already be a String object.

Call IsDBNull to check for null values before calling this method.

See Also