SqlBatchCommandCollection.IndexOf Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
IndexOf(DbBatchCommand) |
Возвращает индекс указанного объекта DbBatchCommand. |
IndexOf(SqlBatchCommand) |
Выполняет поиск указанного SqlBatchCommand объекта в SqlBatchCommandCollection и возвращает отсчитываемый от нуля индекс первого вхождения во всем SqlBatchCommandCollectionобъекте . |
IndexOf(DbBatchCommand)
Возвращает индекс указанного объекта DbBatchCommand.
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
Параметры
- item
- DbBatchCommand
Объект для поиска в IList<T>.
Возвращаемое значение
Индекс указанного объекта DbBatchCommand.
Применяется к
IndexOf(SqlBatchCommand)
Выполняет поиск указанного SqlBatchCommand объекта в SqlBatchCommandCollection и возвращает отсчитываемый от нуля индекс первого вхождения во всем 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
Параметры
- item
- SqlBatchCommand
Возвращаемое значение
Возвращает отсчитываемый от нуля индекс первого вхождения в пределах всего SqlBatchCommandCollectionобъекта .