Npgsql Api Docs |

# NpgsqlParameterCollection.Add Method (String, NpgsqlDbType)

Adds a NpgsqlParameter to the NpgsqlParameterCollection given the parameter name and the data type.

[Visual Basic]
Overloads Public Function Add( _
ByVal parameterName As String, _
ByVal parameterType As NpgsqlDbType _
) As NpgsqlParameter
[C#]
public NpgsqlParameter Add(
string parameterName,
NpgsqlDbType parameterType
);

#### Parameters

parameterName
  The name of the parameter.
parameterType
  One of the DbType values.

#### Return Value

The index of the new NpgsqlParameter object.

#### See Also

NpgsqlParameterCollection Class | Npgsql Namespace | NpgsqlParameterCollection.Add Overload List