OdbcParameterCollection.IndexOf 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取集合中指定的位置 OdbcParameter 。
重载
| 名称 | 说明 |
|---|---|
| IndexOf(OdbcParameter) |
获取集合中指定的位置 OdbcParameter 。 |
| IndexOf(Object) |
获取集合中指定的位置 Object 。 |
| IndexOf(String) |
获取具有指定名称的指定 OdbcParameter 位置。 |
IndexOf(OdbcParameter)
- Source:
- OdbcParameterCollection.cs
- Source:
- OdbcParameterCollection.cs
- Source:
- OdbcParameterCollection.cs
- Source:
- OdbcParameterCollection.cs
获取集合中指定的位置 OdbcParameter 。
public:
int IndexOf(System::Data::Odbc::OdbcParameter ^ value);
public int IndexOf(System.Data.Odbc.OdbcParameter value);
override this.IndexOf : System.Data.Odbc.OdbcParameter -> int
Public Function IndexOf (value As OdbcParameter) As Integer
参数
- value
- OdbcParameter
OdbcParameter要查找的集合中的对象。
返回
集合中指定的从零开始的位置 OdbcParameter 。
另请参阅
适用于
IndexOf(Object)
获取集合中指定的位置 Object 。
public:
override int IndexOf(System::Object ^ value);
public:
virtual int IndexOf(System::Object ^ value);
public override int IndexOf(object value);
public int IndexOf(object value);
override this.IndexOf : obj -> int
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Overrides Function IndexOf (value As Object) As Integer
Public Function IndexOf (value As Object) As Integer
参数
返回
集合中指定ObjectOdbcParameter的位置从零开始。
实现
另请参阅
适用于
IndexOf(String)
获取具有指定名称的指定 OdbcParameter 位置。
public:
override int IndexOf(System::String ^ parameterName);
public:
virtual int IndexOf(System::String ^ parameterName);
public override int IndexOf(string parameterName);
public int IndexOf(string parameterName);
override this.IndexOf : string -> int
abstract member IndexOf : string -> int
override this.IndexOf : string -> int
Public Overrides Function IndexOf (parameterName As String) As Integer
Public Function IndexOf (parameterName As String) As Integer
参数
- parameterName
- String
要查找的 OdbcParameter 区分大小写的名称。
返回
使用指定区分大小写的名称指定的从零开始的位置 OdbcParameter 。