Dela via


SqlBatchCommandCollection Class

Definition

A collection of instances of SqlBatchCommand, contained within a 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)
Inheritance
SqlBatchCommandCollection
Implements

Constructors

SqlBatchCommandCollection()

Properties

Count

Gets the number of elements contained in the ICollection<T>.

IsReadOnly

Specifies whether the collection is read-only.

Item[Int32]

Gets or Sets the element at the specified index.

Methods

Add(DbBatchCommand)

Adds the specified DbBatchCommand object to the ICollection<T>.

Add(SqlBatchCommand)

Add a SqlBatchCommand to the end of the SqlBatchCommandCollection.

Clear()

Removes all SqlBatchCommand values from the SqlBatchCommandCollection.

Contains(DbBatchCommand)

Indicates whether a DbBatchCommand is contained in the collection.

Contains(SqlBatchCommand)

Determines whether a SqlBatchCommand is in the SqlBatchCommandCollection.

CopyTo(DbBatchCommand[], Int32)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

CopyTo(SqlBatchCommand[], Int32)

Copies the entire SqlBatchCommandCollection to a one dimensional array, starting at the target index of the target array.

GetBatchCommand(Int32)

Returns the SqlBatchCommand object at the specified index in the list.

GetEnumerator()

Returns the SqlBatchCommand object at the specified index in the collection.

IndexOf(DbBatchCommand)

Returns the index of the specified DbBatchCommand object.

IndexOf(SqlBatchCommand)

Searches for the specified SqlBatchCommand within the SqlBatchCommandCollection and returns the zero-based index of the first occurence within the entire SqlBatchCommandCollection.

Insert(Int32, DbBatchCommand)

Inserts the specified index of the DbBatchCommand object with the specified name into the collection at the specified index.

Insert(Int32, SqlBatchCommand)

Inserts an item into the SqlBatchCommandCollection at the specified index.

Remove(DbBatchCommand)

Removes the specified SqlBatchCommand object from the collection.

Remove(SqlBatchCommand)

Removes the first occurence of a specific SqlBatchCommand object from the collection.

RemoveAt(Int32)

Removes the SqlBatchCommand object at the specified index from the collection.

SetBatchCommand(Int32, DbBatchCommand)

Sets the SqlBatchCommand object at the specified index to a new value.

Explicit Interface Implementations

IEnumerable.GetEnumerator()
IEnumerable<SqlBatchCommand>.GetEnumerator()
IList<SqlBatchCommand>.Item[Int32]

Gets or Sets the element at the specified index.

Applies to