Npgsql Api Docs |

# NpgsqlParameterCollection.IndexOf Method (String)

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

[Visual Basic]
Overrides Overloads Public Function IndexOf( _
ByVal parameterName As String _
) As Integer _
Implements IDataParameterCollection.IndexOf
[C#]
public override 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