Share via


SqlBatchCommandCollection Classe

Définition

Collection d’instances de SqlBatchCommand, contenue dans un SqlBatch.

public ref class SqlBatchCommandCollection : System::Data::Common::DbBatchCommandCollection, System::Collections::Generic::ICollection<Microsoft::Data::SqlClient::SqlBatchCommand ^>, System::Collections::Generic::IEnumerable<Microsoft::Data::SqlClient::SqlBatchCommand ^>, System::Collections::Generic::IList<Microsoft::Data::SqlClient::SqlBatchCommand ^>
public class SqlBatchCommandCollection : System.Data.Common.DbBatchCommandCollection, System.Collections.Generic.ICollection<Microsoft.Data.SqlClient.SqlBatchCommand>, System.Collections.Generic.IEnumerable<Microsoft.Data.SqlClient.SqlBatchCommand>, System.Collections.Generic.IList<Microsoft.Data.SqlClient.SqlBatchCommand>
type SqlBatchCommandCollection = class
    inherit DbBatchCommandCollection
    interface ICollection<SqlBatchCommand>
    interface seq<SqlBatchCommand>
    interface IEnumerable
    interface IList<SqlBatchCommand>
Public Class SqlBatchCommandCollection
Inherits DbBatchCommandCollection
Implements ICollection(Of SqlBatchCommand), IEnumerable(Of SqlBatchCommand), IList(Of SqlBatchCommand)
Héritage
SqlBatchCommandCollection
Implémente

Constructeurs

SqlBatchCommandCollection()

Collection d’instances de SqlBatchCommand, contenue dans un SqlBatch.

Propriétés

Count

Obtient le nombre d’éléments contenus dans le ICollection<T>.

IsReadOnly

Spécifie si la collection est en lecture seule.

Item[Int32]

Obtient ou Définit l’élément à l’index spécifié.

Méthodes

Add(DbBatchCommand)

Ajoute l'objet DbBatchCommand spécifié au ICollection<T>.

Add(SqlBatchCommand)

Ajoutez un SqlBatchCommand à la fin de .SqlBatchCommandCollection

Clear()

Supprime toutes les valeurs SqlBatchCommand de SqlBatchCommandCollection.

Contains(DbBatchCommand)

Indique si un DbBatchCommand est contenu dans la collection.

Contains(SqlBatchCommand)

Détermine si un SqlBatchCommand figure dans le SqlBatchCommandCollection.

CopyTo(DbBatchCommand[], Int32)

Copie les éléments de ICollection<T> dans Array, à partir d'un index particulier de Array.

CopyTo(SqlBatchCommand[], Int32)

Copie l’ensemble SqlBatchCommandCollection dans un tableau unidimensionnel, en commençant à l’index cible du tableau cible.

GetBatchCommand(Int32)

Retourne l’objet SqlBatchCommand à l’index spécifié dans la liste.

GetEnumerator()

Retourne l’objet SqlBatchCommand à l’index spécifié dans la collection.

IndexOf(DbBatchCommand)

Retourne l’index de l’objet DbBatchCommand spécifié.

IndexOf(SqlBatchCommand)

Recherche le spécifié SqlBatchCommand dans et SqlBatchCommandCollection retourne l’index de base zéro de la première occurrence dans l’ensemble SqlBatchCommandCollectionde .

Insert(Int32, DbBatchCommand)

Insère l’index spécifié de l’objet DbBatchCommand avec le nom spécifié dans la collection à l’index spécifié.

Insert(Int32, SqlBatchCommand)

Insère un élément dans SqlBatchCommandCollection à l'index spécifié.

Remove(DbBatchCommand)

Supprime l'objet SqlBatchCommand spécifié de la collection.

Remove(SqlBatchCommand)

Supprime la première occurrence d’un objet spécifique SqlBatchCommand de la collection.

RemoveAt(Int32)

Supprime l’objet SqlBatchCommand de la collection, à l’index spécifié.

SetBatchCommand(Int32, DbBatchCommand)

Affecte une nouvelle valeur à l’objet SqlBatchCommand à l’index spécifié.

Implémentations d’interfaces explicites

IEnumerable.GetEnumerator()

Collection d’instances de SqlBatchCommand, contenue dans un SqlBatch.

IEnumerable<SqlBatchCommand>.GetEnumerator()

Collection d’instances de SqlBatchCommand, contenue dans un SqlBatch.

IList<SqlBatchCommand>.Item[Int32]

Obtient ou Définit l’élément à l’index spécifié.

S’applique à