SqlCommand.EndExecuteReader メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SqlCommand.EndExecuteReader メソッドの意味・解説 

SqlCommand.EndExecuteReader メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

Transact-SQL ステートメントの非同期実行を完了し、要求された SqlDataReader を返します。

名前空間: System.Data.SqlClient
アセンブリ: System.Data (system.data.dll 内)
構文構文

Public Function EndExecuteReader ( _
    asyncResult As IAsyncResult _
) As SqlDataReader
Dim instance As SqlCommand
Dim asyncResult As IAsyncResult
Dim returnValue As SqlDataReader

returnValue = instance.EndExecuteReader(asyncResult)
public SqlDataReader EndExecuteReader (
    IAsyncResult asyncResult
)
public:
SqlDataReader^ EndExecuteReader (
    IAsyncResult^ asyncResult
)
public SqlDataReader EndExecuteReader (
    IAsyncResult asyncResult
)
public function EndExecuteReader (
    asyncResult : IAsyncResult
) : SqlDataReader

パラメータ

asyncResult

BeginExecuteReader の呼び出しで返される IAsyncResult。

戻り値
要求された行を取得するための SqlDataReader オブジェクト。

例外例外
例外の種類条件

ArgumentException

asyncResult パラメータが null (Microsoft Visual Basic の場合は Nothing) です。

InvalidOperationException

単一のコマンド実行に対して EndExecuteReader が複数回呼び出されたか、実行メソッドに対して不適切なメソッドが呼び出されました (たとえば、BeginExecuteXmlReader の呼び出しの実行を完了するために、コードで EndExecuteReader を呼び出した場合)。

解説解説
使用例使用例

EndExecuteReader メソッドの実際の使用例については、「BeginExecuteReader」を参照してください。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

SqlCommand.EndExecuteReader メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SqlCommand.EndExecuteReader メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS