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

定義

現在のバッチ内のいずれかのコマンドから 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

例外

アダプターはバッチをサポートしていません。

注釈

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

注意 (継承者)

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

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

適用対象

こちらもご覧ください