SqlBatchCommandCollection.IndexOf Metoda

Definicja

Przeciążenia

IndexOf(DbBatchCommand)

Zwraca indeks określonego DbBatchCommand obiektu.

IndexOf(SqlBatchCommand)

Wyszukuje określone SqlBatchCommand w obiekcie i zwraca indeks oparty na zerach SqlBatchCommandCollection pierwszego wystąpienia w całym SqlBatchCommandCollectionobiekcie .

IndexOf(DbBatchCommand)

Zwraca indeks określonego DbBatchCommand obiektu.

public:
 override int IndexOf(System::Data::Common::DbBatchCommand ^ item);
public override int IndexOf (System.Data.Common.DbBatchCommand item);
override this.IndexOf : System.Data.Common.DbBatchCommand -> int
Public Overrides Function IndexOf (item As DbBatchCommand) As Integer

Parametry

item
DbBatchCommand

Obiekt do zlokalizowania w obiekcie IList<T>.

Zwraca

Indeks określonego DbBatchCommand obiektu.

Dotyczy

IndexOf(SqlBatchCommand)

Wyszukuje określone SqlBatchCommand w obiekcie i zwraca indeks oparty na zerach SqlBatchCommandCollection pierwszego wystąpienia w całym SqlBatchCommandCollectionobiekcie .

public:
 virtual int IndexOf(Microsoft::Data::SqlClient::SqlBatchCommand ^ item);
public int IndexOf (Microsoft.Data.SqlClient.SqlBatchCommand item);
override this.IndexOf : Microsoft.Data.SqlClient.SqlBatchCommand -> int
Public Function IndexOf (item As SqlBatchCommand) As Integer

Parametry

Zwraca

Zwraca indeks oparty na zerach pierwszego wystąpienia w całym SqlBatchCommandCollectionobiekcie .

Implementuje

Dotyczy