Initiates the asynchronous execution of a SQL statement or stored procedure that is described by this SACommand, given a callback procedure and state information.
Public Function BeginExecuteNonQuery(
ByVal callback As AsyncCallback,
ByVal stateObject As Object
) As IAsyncResult
public IAsyncResult BeginExecuteNonQuery(
AsyncCallback callback,
object stateObject
)
callback An System.AsyncCallback delegate that is invoked when the command's execution has completed. Pass null (Nothing in Microsoft Visual Basic) to indicate that no callback is required.
stateObject A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback procedure using the System.IAsyncResult.AsyncState property.
An System.IAsyncResult that can be used to poll, wait for results, or both; this value is also needed when invoking EndExecuteNonQuery(IAsyncResult), which returns the number of affected rows.
SAException class Any error that occurred while executing the command text.
For asynchronous command, the order of parameters must be consistent with CommandText.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |