Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
この SACommand で記述される SQL 文またはストアドプロシージャの非同期実行を開始し、サーバから 1 つまたは複数の結果セットを取得します。
Public Function BeginExecuteReader( ByVal callback As AsyncCallback, ByVal stateObject As Object, ByVal behavior As CommandBehavior ) As IAsyncResult
public IAsyncResult BeginExecuteReader( AsyncCallback callback, object stateObject, CommandBehavior behavior )
callback コマンドの実行が終了すると起動される System.AsyncCallback デリゲート。コールバックが必要ないことを示すには、NULL (Microsoft Visual Basic の場合は Nothing) を渡します。
stateObject コールバックプロシージャに渡される、ユーザ定義のステータスオブジェクト。コールバックプロシージャからこのオブジェクトを取得するには、System.IAsyncResult.AsyncState プロパティを使用します。
behavior クエリの結果の記述と、接続への影響の記述の System.Data.CommandBehavior フラグのビット単位の組み合わせ。
ポーリング、結果の待機、または両方に使用できる System.IAsyncResult。この値は、返されたローを取得するために使用する SADataReader オブジェクトを返す、EndExecuteReader(IAsyncResult) を起動する場合にも必要です。
SAException クラス コマンドテキストの実行中に発生したエラー。
非同期コマンドでは、パラメータの順序は CommandText と一致している必要があります。