GetString Method (Int32)

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Gets the value of the specified column as a String object.

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.8.4.0

Syntax

C#
public override string GetString(
	int i
)
Visual Basic
Public Overrides Function GetString ( _
	i As Integer _
) As String
Visual C++
public:
virtual String^ GetString(
	int i
) override

Parameters

i
Type: System..::..Int32
The zero-based column ordinal.

Return Value

The value of the specified column.

Implements

IDataRecord..::..GetString(Int32)
IDataRecord..::..GetString(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