DataCommand.Execute メソッド (String, DataCommandType, array<IVsDataParameter )

パラメーターで指定されたコマンドを、オプションで実行し、は読み取り専用になります。

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

構文

'宣言
Public Function Execute ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter() _
) As IVsDataReader
public IVsDataReader Execute(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters
)
public:
virtual IVsDataReader^ Execute(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters
) sealed
abstract Execute : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] -> IVsDataReader 
override Execute : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] -> IVsDataReader 
public final function Execute(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[]
) : IVsDataReader

パラメーター

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

戻り値

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

実装

IVsDataCommand.Execute(String, DataCommandType, array<IVsDataParameter[])

例外

例外 条件
ArgumentNullException

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

解説

または DataParameter のオブジェクトの parameters 配列で指定した戻り値のパラメーターは、返された IVsDataReader が終了した後にのみ取得できます。これは、データ、およびパラメーター値がデータ ソースが返すことができるさまざまな順序を使用するためです。

[!メモ]

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

.NET Framework セキュリティ

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

参照

関連項目

DataCommand クラス

Execute オーバーロード

Microsoft.VisualStudio.Data.Framework 名前空間

DataCommandType

ExecuteWithoutResults