Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
在已知回调过程和状态信息的情况下,启动由此 SACommand 对象说明的 SQL 语句的异步执行,并检索结果集。
Public Function BeginExecuteReader( ByVal callback As AsyncCallback, ByVal stateObject As Object ) As IAsyncResult
public IAsyncResult BeginExecuteReader( AsyncCallback callback, object stateObject )
callback 命令执行完成时调用的 System.AsyncCallback 委派。传递空值(在 Microsoft Visual Basic 中是 Nothing)表示不需要回调。
stateObject 传递给回调过程的用户定义状态对象。使用 System.IAsyncResult.AsyncState 属性从回调过程中检索此对象。
可只用于进行轮询、只用于等待结果或同时用于这两者的 System.IAsyncResult;调用 EndExecuteReader(IAsyncResult)(返回可用于检索返回行的 SADataReader 对象)时也需要此值。
SAException 类 执行命令文本期间出现的任何错误。
对于 asynchronous 命令,参数顺序必须与 CommandText 保持一致。