Npgsql Api Docs

NpgsqlParameterCollection.Add Method (String, NpgsqlDbType, Int32, String)

Adds a NpgsqlParameter to the NpgsqlParameterCollection with the parameter name, the data type, the column length, and the source column name.

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

Parameters

parameterName
The name of the parameter.
parameterType
One of the DbType values.
size
The length of the column.
sourceColumn
The name of the source column.

Return Value

The index of the new NpgsqlParameter object.

See Also

NpgsqlParameterCollection Class | Npgsql Namespace | NpgsqlParameterCollection.Add Overload List