dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlConnectionStringBuilder Class / ConnectionLifetime Property

In This Topic
ConnectionLifetime Property
In This Topic
Gets or sets time span in seconds for connection to live.
Syntax
'Declaration
 
Public Property ConnectionLifetime As Integer
 

Property Value

Number of seconds for connection to live.
Remarks
When a connection is returned to the pool, its creation time is compared with the current time, and the connection is destroyed if that time span (in seconds) exceeds the value specified by Connection Lifetime. The default value is 0 (connection always returns to pool).
See Also