Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Session.ExecuteScalarAsync Method

Name Parameters Description
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[], 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.