ExecuteScalarAsync Method (String, String, MySqlParameter[])

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Async version of ExecuteScalar

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

Syntax

C#
public static Task<Object> ExecuteScalarAsync(
	string connectionString,
	string commandText,
	params MySqlParameter[] commandParameters
)
Visual Basic
Public Shared Function ExecuteScalarAsync ( _
	connectionString As String, _
	commandText As String, _
	ParamArray commandParameters As MySqlParameter() _
) As Task(Of Object)
Visual C++
public:
static Task<Object^>^ ExecuteScalarAsync(
	String^ connectionString, 
	String^ commandText, 
	... array<MySqlParameter^>^ commandParameters
)

Parameters

connectionString
Type: System..::..String
Settings to use for the command
commandText
Type: System..::..String
Command text to use for the command
commandParameters
Type: array<MySql.Data.MySqlClient..::..MySqlParameter>[]()[][]
Parameters to use for the command

Return Value

The first column of the first row in the result set, or a null reference if the result set is empty.

See Also