dotConnect for Dynamics 365 Documentation
Devart.Data Namespace / SqlShimConnectionStringBuilder Class / ConnectionLifetime Property

ConnectionLifetime Property
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).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also