次の方法で共有


IDbCommand インターフェイス

データ ソースへの開いている接続が存在するときに実行されるステートメントを表します。

名前空間:  Microsoft.ReportingServices.DataProcessing
アセンブリ:   Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

構文

'宣言
Public Interface IDbCommand _
    Inherits IDisposable
'使用
Dim instance As IDbCommand
public interface IDbCommand : IDisposable
public interface class IDbCommand : IDisposable
type IDbCommand =  
    interface 
        interface IDisposable 
    end
public interface IDbCommand extends IDisposable

IDbCommand 型は、以下のメンバーを公開しています。

プロパティ

  名前 説明
パブリック プロパティ CommandText データ ソースに対して実行するテキスト コマンドを取得または設定します。
パブリック プロパティ CommandTimeout コマンド実行の試行を終了してエラーを生成する前に、待機時間を取得または設定します。
パブリック プロパティ CommandType CommandText プロパティの解釈方法 (テキストまたはストアド プロシージャなどとして) を示すか、指定します。
パブリック プロパティ Parameters IDataParameterCollection を取得します。
パブリック プロパティ Transaction SQL Server Reporting Services データ プロバイダーの Command オブジェクトが実行されるトランザクションを取得または設定します。

先頭に戻る

メソッド

  名前 説明
パブリック メソッド Cancel IDbCommand の実行の取り消しを試行します。
パブリック メソッド CreateParameter IDataParameter オブジェクトの新しいインスタンスを作成します。
パブリック メソッド Dispose (IDisposable から継承されています。)
パブリック メソッド ExecuteReader Connection に対して CommandText を実行し、IDataReader を構築します。

先頭に戻る

説明

IDbCommand インターフェイスは、データ ソースで実行されるステートメントを表す Command クラスを実装することを可能にします。 Command クラスの詳細については、「データ処理拡張機能の Command クラスの実装」を参照してください。

アプリケーションは、IDbCommand インターフェイスのインスタンスを直接作成するのではなく、IDbCommand を実装するクラスのインスタンスを作成します。

IDbCommand を実装するクラスは、必要なメンバーもすべて実装し、通常は、プロバイダー固有の機能を追加するための追加メンバーを定義する必要があります。

IDbCommand インターフェイスから実装する場合は、次のコンストラクターを実装する必要があります。

アイテム

説明

PrvCommand()

PrvCommand クラスの新しいインスタンスを初期化します。

PrvCommand(string cmdText)

クエリのテキストを使用して、PrvCommand クラスの新しいインスタンスを初期化します。

PrvCommand(string cmdText, PrvTransaction transaction)

PrvConnection および PrvTransaction のクエリのテキストを使用して、PrvCommand クラスの新しいインスタンスを初期化します。

関連項目

参照

Microsoft.ReportingServices.DataProcessing 名前空間