SqlBatchCommandCollection 類別

定義

的實例 SqlBatchCommand集合,包含在 內 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)
繼承
SqlBatchCommandCollection
實作

建構函式

SqlBatchCommandCollection()

的實例 SqlBatchCommand集合,包含在 內 SqlBatch

屬性

Count

取得 ICollection<T> 中所包含的項目數。

IsReadOnly

指定此集合是否為唯讀。

Item[Int32]

取得或設定位於指定索引處的專案。

方法

Add(DbBatchCommand)

將指定的 DbBatchCommand 物件加入至 ICollection<T>

Add(SqlBatchCommand)

SqlBatchCommand將加入至的SqlBatchCommandCollection結尾。

Clear()

SqlBatchCommandCollection 中移除所有 SqlBatchCommand 值。

Contains(DbBatchCommand)

指出是否 DbBatchCommand 包含在集合中。

Contains(SqlBatchCommand)

判斷 SqlBatchCommand 是否位於 SqlBatchCommandCollection

CopyTo(DbBatchCommand[], Int32)

從特定的 ICollection<T> 索引開始,將 Array 的項目複製到 Array

CopyTo(SqlBatchCommand[], Int32)

從目標陣列的目標索引開始,將整個 SqlBatchCommandCollection 複製到一維陣列。

GetBatchCommand(Int32)

SqlBatchCommand 回清單中指定索引處的物件。

GetEnumerator()

傳回位於此集合指定索引處的 SqlBatchCommand 物件。

IndexOf(DbBatchCommand)

傳回 DbBatchCommand 物件指定之索引。

IndexOf(SqlBatchCommand)

在內SqlBatchCommandCollection搜尋指定的 SqlBatchCommand ,並傳回整個 SqlBatchCommandCollection內第一次出現之以零起始的索引。

Insert(Int32, DbBatchCommand)

將具有指定名稱的 DbBatchCommand 物件指定索引插入位於指定索引的集合中。

Insert(Int32, SqlBatchCommand)

將項目插入 SqlBatchCommandCollection 中指定的索引處。

Remove(DbBatchCommand)

從集合中移除指定的 SqlBatchCommand 物件。

Remove(SqlBatchCommand)

從集合中移除第一個出現的特定 SqlBatchCommand 物件。

RemoveAt(Int32)

從集合中移除位於指定索引位置的 SqlBatchCommand 物件。

SetBatchCommand(Int32, DbBatchCommand)

將指定索引處的 SqlBatchCommand 物件設定為新值。

明確介面實作

IEnumerable.GetEnumerator()

的實例 SqlBatchCommand集合,包含在 內 SqlBatch

IEnumerable<SqlBatchCommand>.GetEnumerator()

的實例 SqlBatchCommand集合,包含在 內 SqlBatch

IList<SqlBatchCommand>.Item[Int32]

取得或設定位於指定索引處的專案。

適用於