ExecuteScalarAsync Method (String, String)

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
)
Visual Basic
Public Shared Function ExecuteScalarAsync ( _
	connectionString As String, _
	commandText As String _
) As Task(Of Object)
Visual C++
public:
static Task<Object^>^ ExecuteScalarAsync(
	String^ connectionString, 
	String^ commandText
)

Parameters

connectionString
Type: System..::..String
Settings to use for the update
commandText
Type: System..::..String
Command text to use for the update

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