Npgsql Api Docs |

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

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

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

#### Parameters

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

#### Return Value

The index of the new NpgsqlParameter object.

#### See Also

NpgsqlParameterCollection Class | Npgsql Namespace | NpgsqlParameterCollection.Add Overload List