OdbcParameterCollection.IndexOf Method

Definition

Gets the location of the specified OdbcParameter within the collection.

Overloads

IndexOf(OdbcParameter)

Gets the location of the specified OdbcParameter within the collection.

IndexOf(Object)

Gets the location of the specified Object within the collection.

IndexOf(String)

Gets the location of the specified OdbcParameter with the specified name.

IndexOf(OdbcParameter)

Source:
OdbcParameterCollection.cs
Source:
OdbcParameterCollection.cs
Source:
OdbcParameterCollection.cs

Gets the location of the specified OdbcParameter within the collection.

C#
public int IndexOf(System.Data.Odbc.OdbcParameter value);

Parameters

value
OdbcParameter

The OdbcParameter object in the collection to find.

Returns

The zero-based location of the specified OdbcParameter within the collection.

See also

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

IndexOf(Object)

Source:
OdbcParameterCollectionHelper.cs
Source:
OdbcParameterCollectionHelper.cs
Source:
OdbcParameterCollectionHelper.cs

Gets the location of the specified Object within the collection.

C#
public override int IndexOf(object value);
C#
public int IndexOf(object value);

Parameters

value
Object

The Object to find.

Returns

The zero-based location of the specified Object that is a OdbcParameter within the collection.

Implements

See also

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

IndexOf(String)

Source:
OdbcParameterCollectionHelper.cs
Source:
OdbcParameterCollectionHelper.cs
Source:
OdbcParameterCollectionHelper.cs

Gets the location of the specified OdbcParameter with the specified name.

C#
public override int IndexOf(string parameterName);
C#
public int IndexOf(string parameterName);

Parameters

parameterName
String

The case-sensitive name of the OdbcParameter to find.

Returns

The zero-based location of the specified OdbcParameter with the specified case-sensitive name.

Implements

See also

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)