GetString Method (String)

MySQL Connector/Net

Gets the value of the specified column as a String object.

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

Syntax

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

Parameters

column
Type: System..::.String
The column name.

Return Value

The value of the specified column.

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