MySQL Connector/Net
MySqlHelperExecuteScalarAsync Method (String, String) |
Async version of ExecuteScalar
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9

public static Task<Object> ExecuteScalarAsync( string connectionString, string commandText )
Public Shared Function ExecuteScalarAsync ( connectionString As String, commandText As String ) As Task(Of Object)
public: static Task<Object^>^ ExecuteScalarAsync( String^ connectionString, String^ commandText )
static member ExecuteScalarAsync : connectionString : string * commandText : string -> Task<Object>
Parameters
- connectionString
- Type: SystemString
Settings to use for the update - commandText
- Type: SystemString
Command text to use for the update
Return Value
Type: TaskObjectThe first column of the first row in the result set, or a null reference if the result set is empty.
