DataCommand.Execute メソッド (String)

指定したコマンドを実行し、読み取り専用の結果を返します。

名前空間:  Microsoft.VisualStudio.Data.Framework
アセンブリ:  Microsoft.VisualStudio.Data.Framework (Microsoft.VisualStudio.Data.Framework.dll 内)

構文

'宣言
Public Function Execute ( _
    command As String _
) As IVsDataReader
public IVsDataReader Execute(
    string command
)
public:
virtual IVsDataReader^ Execute(
    String^ command
) sealed
abstract Execute : 
        command:string -> IVsDataReader 
override Execute : 
        command:string -> IVsDataReader 
public final function Execute(
    command : String
) : IVsDataReader

パラメーター

  • command
    型 : System.String
    実装するデータ ソースに固有のコマンド。

戻り値

型 : Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
データ ソースの前方スクロール専用、読み取り専用ストリームを提供する IVsDataReader のオブジェクト。

実装

IVsDataCommand.Execute(String)

例外

例外 条件
ArgumentNullException

command パラメーターが nullnull 参照 (Visual Basic では Nothing) です。

解説

[!メモ]

例外は、ほかの実行がプロバイダー指定された理由で失敗したことを示します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

DataCommand クラス

Execute オーバーロード

Microsoft.VisualStudio.Data.Framework 名前空間

DataCommandType