Skip to main content
.NET Framework 4.6.2+

Session.ExecuteScalarAsync Method

Name Parameters Description
ExecuteScalarAsync(String, QueryParameterCollection, CancellationToken) sql, parameters, cancellationToken Asynchronously executes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalarAsync(String, Object[], CancellationToken) sql, parameterValues, cancellationToken Executes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalarAsync(String, String[], QueryParameterCollection, CancellationToken) sql, parameterNames, parameters, cancellationToken Asynchronously executes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalarAsync(String, String[], Object[], CancellationToken) sql, parameterNames, parameterValues, cancellationToken Asynchronously executes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalarAsync(String, CancellationToken) sql, cancellationToken Executes the specified SQL query and returns the first column of the first row in the result set returned by the query.