DB2®ConnectionStringBuilder.ConnectionLifeTime Property
Gets or sets the number of seconds that the connection can remain idle in the connection pool.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Property ConnectionLifeTime As int
[C#]
public int ConnectionLifeTime {get; set;}
[C++]
public: __property int* get_ConnectionLifeTime();
public: __property void set_ConnectionLifeTime(int*);
[JScript]
public function get ConnectionLifeTime() : int;
public function set ConnectionLifeTime(int);
Property value
An integer specifying the length of time a connection may remain idle in the connection pool.
Note:
- The default value is 60 seconds.
- Setting the property value to any positive integer specifies how long the connection will remain idle in the connection pool.
- A value of -1 means that the connection may remain indefinitely.