Поделиться через


Свойство ConnectionSettings.PooledConnectionLifetime

Возвращает или задает время существования помещенного в пул соединения.

Пространство имен:  Microsoft.SqlServer.Management.Common
Сборка:  Microsoft.SqlServer.ConnectionInfo (в Microsoft.SqlServer.ConnectionInfo.dll)

Синтаксис

'Декларация
Public Property PooledConnectionLifetime As Integer 
    Get 
    Set
'Применение
Dim instance As ConnectionSettings 
Dim value As Integer 

value = instance.PooledConnectionLifetime

instance.PooledConnectionLifetime = value
public int PooledConnectionLifetime { get; set; }
public:
property int PooledConnectionLifetime {
    int get ();
    void set (int value);
}
member PooledConnectionLifetime : int with get, set
function get PooledConnectionLifetime () : int 
function set PooledConnectionLifetime (value : int)

Значение свойства

Тип: Int32
Значение типа Int32, указывающее время существования входящего в пул соединения в секундах.

См. также

Справочник

ConnectionSettings Класс

Пространство имен Microsoft.SqlServer.Management.Common