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 命名空间