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

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

Syntax

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

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

Requirements

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