SqlBatchCommandCollection.IndexOf Method

Definition

Overloads

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.

IndexOf(DbBatchCommand)

Returns the index of the specified DbBatchCommand object.

C#
public override int IndexOf (System.Data.Common.DbBatchCommand item);

Parameters

item
DbBatchCommand

The object to locate in the IList<T>.

Returns

The index of the specified DbBatchCommand object.

Applies to

SqlClient .NET Core 5.2
Produkt Verzie
SqlClient .NET Core 5.2

IndexOf(SqlBatchCommand)

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

C#
public int IndexOf (Microsoft.Data.SqlClient.SqlBatchCommand item);

Parameters

Returns

Returns the zero-based index of the first occurence within the entire SqlBatchCommandCollection.

Implements

Applies to

SqlClient .NET Core 5.2
Produkt Verzie
SqlClient .NET Core 5.2