Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
在已知回调过程和状态信息的情况下,启动由此 ULCommand 对象说明的 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) 方法(返回可用于检索返回行的 ULDataReader 对象)时也需要此值。
ULException 类 执行命令文本期间出现的任何错误。