SqlBatchCommandCollection.IndexOf Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- item
- SqlBatchCommand
Returns
Returns the zero-based index of the first occurence within the entire SqlBatchCommandCollection.