ExecuteDataRow Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Executes a single SQL command and returns the first row of the resultset. A new MySqlConnection object is created, opened, and closed during this method.

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

Syntax

C#
public static DataRow ExecuteDataRow(
	string connectionString,
	string commandText,
	params MySqlParameter[] parms
)
Visual Basic
Public Shared Function ExecuteDataRow ( _
	connectionString As String, _
	commandText As String, _
	ParamArray parms As MySqlParameter() _
) As DataRow
Visual C++
public:
static DataRow^ ExecuteDataRow(
	String^ connectionString, 
	String^ commandText, 
	... array<MySqlParameter^>^ parms
)

Parameters

connectionString
Type: System..::..String
Settings to be used for the connection
commandText
Type: System..::..String
Command to execute
parms
Type: array<MySql.Data.MySqlClient..::..MySqlParameter>[]()[][]
Parameters to use for the command

Return Value

DataRow containing the first row of the resultset

See Also