MySqlHelper.ExecuteScalarAsync Method (MySqlConnection, String)

MySQL Connector/Net

MySqlHelperExecuteScalarAsync Method (MySqlConnection, String)
Async version of ExecuteScalar

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9
Syntax
public static Task<Object> ExecuteScalarAsync(
	MySqlConnection connection,
	string commandText
)
Public Shared Function ExecuteScalarAsync ( 
	connection As MySqlConnection,
	commandText As String
) As Task(Of Object)
public:
static Task<Object^>^ ExecuteScalarAsync(
	MySqlConnection^ connection, 
	String^ commandText
)
static member ExecuteScalarAsync : 
        connection : MySqlConnection * 
        commandText : string -> Task<Object> 

Parameters

connection
Type: MySql.Data.MySqlClientMySqlConnection
MySqlConnection object to use
commandText
Type: SystemString
Command text to use for the command

Return Value

Type: TaskObject
The first column of the first row in the result set, or a null reference if the result set is empty.
See Also