AdoDotNetConnectionSupport.Execute メソッド

パラメーターで指定されたコマンドを、オプションで実行し、DataReader のオブジェクトとして返します。

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

構文

'宣言
Public Overridable Function Execute ( _
    command As String, _
    commandType As Integer, _
    parameters As DataParameter(), _
    commandTimeout As Integer _
) As DataReader
public virtual DataReader Execute(
    string command,
    int commandType,
    DataParameter[] parameters,
    int commandTimeout
)
public:
virtual DataReader^ Execute(
    String^ command, 
    int commandType, 
    array<DataParameter^>^ parameters, 
    int commandTimeout
)
abstract Execute : 
        command:string * 
        commandType:int * 
        parameters:DataParameter[] * 
        commandTimeout:int -> DataReader 
override Execute : 
        command:string * 
        commandType:int * 
        parameters:DataParameter[] * 
        commandTimeout:int -> DataReader 
public function Execute(
    command : String, 
    commandType : int, 
    parameters : DataParameter[], 
    commandTimeout : int
) : DataReader

パラメーター

  • command
    型 : System.String
    実行するコマンド。データ ソースに固有である。
  • commandType
    型 : System.Int32
    指定する名前付きの型 command コマンドのパラメーターの内容を解釈する方法を示します。
  • commandTimeout
    型 : System.Int32
    スキーマの派生をキャンセルし、呼び出し元に戻す前にクライアントをブロック時間 (秒)。は、ゼロ値は無限タイムアウトを示しています; 値 -1 は、プロバイダーの既定値を表示します。

戻り値

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

解説

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

.NET Framework セキュリティ

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

参照

関連項目

AdoDotNetConnectionSupport クラス

Microsoft.VisualStudio.Data.AdoDotNet 名前空間