Export (0) Print
Expand All

SqlCommand.ExecuteNonQueryAsync Method

.NET Framework 4.6 and 4.5

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method ExecuteNonQueryAsync() An asynchronous version of ExecuteNonQuery, which executes a SQL statement against a connection object.Invokes ExecuteNonQueryAsync with CancellationToken.None. (Inherited from DbCommand.)
Public method ExecuteNonQueryAsync(CancellationToken) An asynchronous version of ExecuteNonQuery, which executes a Transact-SQL statement against the connection and returns the number of rows affected. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object. (Overrides DbCommand.ExecuteNonQueryAsync(CancellationToken).)
Top
Show:
© 2015 Microsoft