dotConnect for PostgreSQL Documentation
ConnectionLifetime Property
See Also
Devart.Data.PostgreSql Namespace > PgSqlConnectionStringBuilder Class : ConnectionLifetime Property

Gets or sets time span in seconds for connection to live.


Visual Basic (Declaration) 
Public Property ConnectionLifetime As Integer
public int ConnectionLifetime {get; set;}

Property Value

Number of seconds for connection to live.


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).


Platforms:Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8, Windows 10, Windows Server 2012 family.

See Also