DbDataAdapter.GetBatchedParameter(Int32, Int32) メソッド

定義

現在のバッチのコマンドの 1 つから IDataParameter を返します。

protected:
 virtual System::Data::IDataParameter ^ GetBatchedParameter(int commandIdentifier, int parameterIndex);
protected virtual System.Data.IDataParameter GetBatchedParameter (int commandIdentifier, int parameterIndex);
abstract member GetBatchedParameter : int * int -> System.Data.IDataParameter
override this.GetBatchedParameter : int * int -> System.Data.IDataParameter
Protected Overridable Function GetBatchedParameter (commandIdentifier As Integer, parameterIndex As Integer) As IDataParameter

パラメーター

commandIdentifier
Int32

パラメーターを取得するコマンドのインデックス。

parameterIndex
Int32

コマンド内のパラメーターのインデックス。

戻り値

IDataParameter

指定された IDataParameter

例外

アダプターでバッチがサポートされていません。

注釈

DbDataAdapter、このメソッドは NotSupportedException. このメソッドを DbDataAdapter 継承するクラスは、バッチのサポートを提供するためにこのメソッドをオーバーライドします。

注意 (継承者)

このメソッドは保護されており、.NET Framework データ プロバイダーが使用するように設計されています。

継承 DbDataAdapter するクラスがバッチをサポートしている場合、そのクラスはこのメソッドをオーバーライドして、ユーザーがバッチを実行できるようにします。 実装では、指定されたコマンドを commandIdentifier 使用して要求されたコマンドを検索し、指定された parameterIndex パラメーターを使用して要求されたパラメーターを検索します。 たとえば、 commandIdentifier 0 と a parameterIndex の 0 は、バッチ内の最初のコマンドから最初のパラメーターを返します。

適用対象

こちらもご覧ください