Npgsql Api Docs |

# NpgsqlParameterCollection.Add Method

Adds the specified NpgsqlParameter object to the NpgsqlParameterCollection.

#### Overload List

Adds the specified NpgsqlParameter object to the NpgsqlParameterCollection.

> public NpgsqlParameter Add(NpgsqlParameter);

Adds the specified NpgsqlParameter object to the NpgsqlParameterCollection.

> public override int Add(object);

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

> public NpgsqlParameter Add(string,NpgsqlDbType);

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

> public NpgsqlParameter Add(string,NpgsqlDbType,int);

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

> public NpgsqlParameter Add(string,NpgsqlDbType,int,string);

Obsolete. Adds a NpgsqlParameter to the NpgsqlParameterCollection given the specified parameter name and value.

> public NpgsqlParameter Add(string,object);

#### See Also

NpgsqlParameterCollection Class | Npgsql Namespace