An NDoc Documented Class Library |

# NpgsqlConnection.ConnectionString Property

Gets or sets the string used to connect to a PostgreSQL database. Valid values are: Server: Address/Name of Postgresql Server; Port: Port to connect to; Protocol: Protocol version to use, instead of automatic; Integer 2 or 3; Database: Database name. Defaults to user name if not specified; User: User name; Password: Password for clear text authentication; SSL: True or False. Controls whether to attempt a secure connection. Default = False; Pooling: True or False. Controls whether connection pooling is used. Default = True; MinPoolSize: Min size of connection pool; MaxPoolSize: Max size of connection pool; Encoding: Encoding to be used; Timeout: Time to wait for connection open in seconds.

[Visual Basic]
NotOverridable Public Property ConnectionString As String _
Implements IDbConnection.ConnectionString
[C#]
public string ConnectionString {get; set;}

#### Property Value

The connection string that includes the server name, the database name, and other parameters needed to establish the initial connection. The default value is an empty string.

#### Implements

IDbConnection.ConnectionString

#### Remarks

Missing <remarks> documentation for P:Npgsql.NpgsqlConnection.ConnectionString

#### See Also

NpgsqlConnection Class | Npgsql Namespace