Share via


SqlBatchCommand Classe

Définition

SqlBatchCommand permet l’exécution de plusieurs commandes SQL dans un SqlBatch.

public ref class SqlBatchCommand
public ref class SqlBatchCommand : System::Data::Common::DbBatchCommand
public class SqlBatchCommand
public class SqlBatchCommand : System.Data.Common.DbBatchCommand
type SqlBatchCommand = class
type SqlBatchCommand = class
    inherit DbBatchCommand
Public Class SqlBatchCommand
Public Class SqlBatchCommand
Inherits DbBatchCommand
Héritage
SqlBatchCommand
Héritage
SqlBatchCommand

Constructeurs

SqlBatchCommand()

Initialise un nouveau SqlBatchCommand.

SqlBatchCommand(String, CommandType, IEnumerable<SqlParameter>, SqlCommandColumnEncryptionSetting)

Initialise un nouveau SqlBatchCommand.

Propriétés

CanCreateParameter

Retourne si la CreateParameter() méthode est implémentée.

ColumnEncryptionSetting

Actuellement non implémenté. Paramètre de chiffrement. Pour plus d’informations, consultez Always Encrypted.

CommandBehavior

Une des valeurs de CommandBehavior, indiquant les options pour l’exécution d’instructions et la récupération de données.

CommandText

Obtient ou définit la commande de texte à exécuter sur la source de données.

CommandType

Obtient ou définit la façon dont la CommandText propriété est interprétée.

DbParameterCollection

Obtient la collection d'objets SqlParameter.

Parameters

Obtient SqlParameterCollection.

RecordsAffected

Obtient le nombre de lignes modifiées, insérées ou supprimées par l’exécution de ce spécifique SqlBatchCommand.

Méthodes

CreateParameter()

Crée une nouvelle instance d'un objet SqlParameter.

S’applique à