Bagikan melalui


SqlBatchCommandCollection Kelas

Definisi

Kumpulan instans SqlBatchCommand, yang terkandung dalam 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)
Warisan
SqlBatchCommandCollection
Penerapan

Konstruktor

SqlBatchCommandCollection()

Kumpulan instans SqlBatchCommand, yang terkandung dalam SqlBatch.

Properti

Count

Mendapatkan jumlah elemen yang terkandung dalam ICollection<T>.

IsReadOnly

Menentukan apakah koleksi bersifat baca-saja.

Item[Int32]

Mendapatkan atau Mengatur elemen pada indeks yang ditentukan.

Metode

Add(DbBatchCommand)

Menambahkan objek yang ditentukan DbBatchCommand ke ICollection<T>.

Add(SqlBatchCommand)

SqlBatchCommand Tambahkan ke akhir SqlBatchCommandCollection.

Clear()

Menghapus semua SqlBatchCommand nilai dari SqlBatchCommandCollection.

Contains(DbBatchCommand)

Menunjukkan apakah terkandung DbBatchCommand dalam koleksi.

Contains(SqlBatchCommand)

Menentukan apakah ada SqlBatchCommand di SqlBatchCommandCollection.

CopyTo(DbBatchCommand[], Int32)

Menyalin elemen ICollection<T> ke Array, dimulai pada indeks tertentu Array .

CopyTo(SqlBatchCommand[], Int32)

Menyalin seluruh SqlBatchCommandCollection ke array satu dimensi, dimulai pada indeks target array target.

GetBatchCommand(Int32)

Mengembalikan SqlBatchCommand objek pada indeks yang ditentukan dalam daftar.

GetEnumerator()

Mengembalikan SqlBatchCommand objek pada indeks yang ditentukan dalam koleksi.

IndexOf(DbBatchCommand)

Mengembalikan indeks objek yang ditentukan DbBatchCommand .

IndexOf(SqlBatchCommand)

Mencari yang ditentukan SqlBatchCommand dalam SqlBatchCommandCollection dan mengembalikan indeks berbasis nol dari kemunculan pertama dalam seluruh SqlBatchCommandCollection.

Insert(Int32, DbBatchCommand)

Menyisipkan indeks DbBatchCommand objek yang ditentukan dengan nama yang ditentukan ke dalam koleksi pada indeks yang ditentukan.

Insert(Int32, SqlBatchCommand)

Sisipkan item ke dalam pada SqlBatchCommandCollection indeks yang ditentukan.

Remove(DbBatchCommand)

Menghapus objek yang ditentukan SqlBatchCommand dari koleksi.

Remove(SqlBatchCommand)

Menghapus kemunculan pertama objek tertentu SqlBatchCommand dari koleksi.

RemoveAt(Int32)

SqlBatchCommand Menghapus objek pada indeks yang ditentukan dari koleksi.

SetBatchCommand(Int32, DbBatchCommand)

SqlBatchCommand Mengatur objek pada indeks yang ditentukan ke nilai baru.

Implementasi Antarmuka Eksplisit

IEnumerable.GetEnumerator()

Kumpulan instans SqlBatchCommand, yang terkandung dalam SqlBatch.

IEnumerable<SqlBatchCommand>.GetEnumerator()

Kumpulan instans SqlBatchCommand, yang terkandung dalam SqlBatch.

IList<SqlBatchCommand>.Item[Int32]

Mendapatkan atau Mengatur elemen pada indeks yang ditentukan.

Berlaku untuk