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