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 behavior As CommandBehavior ) As IAsyncResult
public IAsyncResult BeginExecuteReader(CommandBehavior behavior)
behavior 用于描述查询结果及其对连接影响的 System.Data.CommandBehavior 标志的逐位组合。
可只用于进行轮询、只用于等待结果或同时用于这两者的 System.IAsyncResult;调用 EndExecuteReader(IAsyncResult)(返回可用于检索返回行的 SADataReader 对象)时也需要此值。
SAException 类 执行命令文本期间出现的任何错误。
对于 asynchronous 命令,参数顺序必须与 CommandText 保持一致。