Export (0) Print
Expand All

DbCommand::ExecuteNonQueryAsync Method

.NET Framework 4.6 and 4.5

An asynchronous version of ExecuteNonQuery, which executes a SQL statement against a connection object.

Invokes ExecuteNonQueryAsync with CancellationToken.None.

Namespace:  System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public:
Task<int>^ ExecuteNonQueryAsync()

Return Value

Type: System.Threading.Tasks::Task<Int32>
A task representing the asynchronous operation.

ExceptionCondition
DbException

An error occurred while executing the command text.

For more information about asynchronous programming, see Asynchronous Programming.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft