The properties of the NpgsqlConnection class are listed below. For a complete list of NpgsqlConnection class members, see the NpgsqlConnection Members topic.
![]() |
Protocol version in use. This can only be called when there is an active connection. |
![]() |
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. |
![]() |
Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error. |
![]() |
|
![]() |
Gets the name of the current database or the database to be used after a connection is opened. |
![]() |
Backend server host name. |
![]() |
Backend server port. |
![]() |
Version of the PostgreSQL backend. This can only be called when there is an active connection. |
![]() |
|
![]() |
If true, the connection will attempt to use SSL. |
![]() |
Gets the current state of the connection. |
![]() |
|
![]() |