Npgsql API Documentation |

# NpgsqlParameterCollection.IndexOf Method (String)

[This is preliminary documentation and subject to change.]

Gets the location of the NpgsqlParameter in the collection with a specific parameter name.

[Visual Basic]
NotOverridable Overloads Public Function IndexOf( _
ByVal parameterName As String _
) As Integer Implements _
IDataParameterCollection.IndexOf
[C#]
public int IndexOf(
string parameterName
);

#### Parameters

parameterName
  The name of the NpgsqlParameter object to find.

#### Return Value

The zero-based location of the NpgsqlParameter in the collection.

#### Implements

IDataParameterCollection.IndexOf

#### See Also

NpgsqlParameterCollection Class | Npgsql Namespace | NpgsqlParameterCollection.IndexOf Overload List