ExecuteAsync()
- Last UpdatedNov 25, 2015
- 1 minute read
Use the ExecuteAsync() method to queue a command object in the connection for later processing. ExecuteAsync() returns immediately, and processing occurs in the background.
Syntax
result ExecuteAsync( )
Remarks
You can check for status by reading the ExecutionState read-only property.
After ExecuteAsync() is processed, you can still obtain a reference to the command objects and analyze their ExecutionState and LastError properties.
To free all resources allocated for the command object, you must call Dispose().