dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlConnectionStringBuilder 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
    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).
    See Also