DbDataAdapter.GetBatchedParameter(Int32, Int32) Méthode
Définition
Retourne IDataParameter à partir de l'une des commandes du lot actuel.Returns a IDataParameter from one of the commands in the current batch.
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
Paramètres
- commandIdentifier
- Int32
Index de la commande à partir duquel récupérer le paramètre.The index of the command to retrieve the parameter from.
- parameterIndex
- Int32
Index du paramètre au sein de la commande.The index of the parameter within the command.
Retours
IDataParameter spécifié.The IDataParameter specified.
Exceptions
L'adaptateur ne prend pas en charge les lots.The adapter does not support batches.
Remarques
Dans DbDataAdapter , cette méthode lève NotSupportedException .In DbDataAdapter, this method throws NotSupportedException. Les classes qui héritent de DbDataAdapter substituent cette méthode pour fournir la prise en charge des lots.Classes that inherit from DbDataAdapter override this method to provide support for batches.
Notes pour les héritiers
Cette méthode est protégée et est conçue pour être utilisée par un fournisseur de données .NET Framework.This method is protected and is designed for use by a .NET Framework data provider.
Si une classe qui hérite de DbDataAdapter prend en charge les lots, cette classe remplace cette méthode pour permettre aux utilisateurs d’exécuter un lot.If a class that inherits from DbDataAdapter supports batches, that class overrides this method to allow users to execute a batch. Une implémentation de utilise le commandIdentifier
fourni pour localiser la commande demandée, puis utilise le parameterIndex
fourni pour localiser le paramètre demandé.An implementation uses the commandIdentifier
provided to locate the requested command, then uses the parameterIndex
provided to locate the requested parameter. Par exemple, un commandIdentifier
de 0 et un parameterIndex
de 0 retourne le premier paramètre de la première commande du lot.For example, a commandIdentifier
of 0 and a parameterIndex
of 0 returns the first parameter from the first command in the batch.