共用方式為


PooledConnectionLifetime 屬性

Gets or sets the lifetime of the pooled connection.

命名空間:  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)

屬性值

型別:System. . :: . .Int32
An Int32 value that specifies the lifetime of the pooled connection in seconds.