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 デリゲート。コールバックが必要ないことを示すには、NULL (Microsoft Visual Basic の場合は Nothing) を渡します。
stateObject コールバックプロシージャに渡される、ユーザ定義のステータスオブジェクト。コールバックプロシージャからこのオブジェクトを取得するには、System.IAsyncResult.AsyncState プロパティを使用します。
ポーリング、結果の待機、または両方に使用できる System.IAsyncResult。この値は、返されたローを取得するために使用する SADataReader オブジェクトを返す、EndExecuteReader(IAsyncResult) を起動する場合にも必要です。
SAException クラス コマンドテキストの実行中に発生したエラー。
非同期コマンドでは、パラメータの順序は CommandText と一致している必要があります。