<PackageReference Include="Microsoft.Data.SqlClient" Version="7.1.1" />

Microsoft.Data.SqlClient.SqlBatchCommandCollection

A collection of instances of SqlBatchCommand, contained within a SqlBatch.
public int Count { get; }

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

public bool IsReadOnly { get; }

Specifies whether the collection is read-only.

public SqlBatchCommand this[int index] { get; set; }

Gets or Sets the element at the specified index.

public void Add(SqlBatchCommand item)

Add a SqlBatchCommand to the end of the SqlBatchCommandCollection.

public void Clear()

Removes all SqlBatchCommand values from the SqlBatchCommandCollection.

public bool Contains(SqlBatchCommand item)

Determines whether a SqlBatchCommand is in the SqlBatchCommandCollection.

public void CopyTo(SqlBatchCommand[] array, int arrayIndex)

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

public int IndexOf(SqlBatchCommand item)

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

public void Insert(int index, SqlBatchCommand item)

Inserts an item into the SqlBatchCommandCollection at the specified index.

public bool Remove(SqlBatchCommand item)

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

public void RemoveAt(int index)

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