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.

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

Parameters

item
DbBatchCommand

The object to locate in the IList<T>.

Returns

The index of the specified DbBatchCommand object.

Applies to

IndexOf(SqlBatchCommand)

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

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

Parameters

Returns

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

Implements

Applies to