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

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

SqlCommand.EndExecuteXmlReader メソッド

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

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

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

Public Function EndExecuteXmlReader ( _
    asyncResult As IAsyncResult _
) As XmlReader
Dim instance As SqlCommand
Dim asyncResult As IAsyncResult
Dim returnValue As XmlReader

returnValue = instance.EndExecuteXmlReader(asyncResult)
public XmlReader EndExecuteXmlReader (
    IAsyncResult asyncResult
)
public:
XmlReader^ EndExecuteXmlReader (
    IAsyncResult^ asyncResult
)
public XmlReader EndExecuteXmlReader (
    IAsyncResult asyncResult
)
public function EndExecuteXmlReader (
    asyncResult : IAsyncResult
) : XmlReader

パラメータ

asyncResult

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

戻り値
結果の XML データをフェッチするときに使用する XmlReader オブジェクト。

例外例外
例外の種類条件

ArgumentException

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

InvalidOperationException

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

解説解説
使用例使用例

EndExecuteXmlReader メソッドの実際の使用例については、「BeginExecuteXmlReader」および「BeginExecuteXmlReader」を参照してください。

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



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2026 GRAS Group, Inc.RSS