共用方式為


SqlConnectionInfo.PoolConnectionLifeTime 屬性

Gets or sets the pool connection period in seconds.

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Property PoolConnectionLifeTime As Integer 
    Get 
    Set
'用途
Dim instance As SqlConnectionInfo 
Dim value As Integer 

value = instance.PoolConnectionLifeTime

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

屬性值

型別:System.Int32
A Int32 value that specifies the pool connection period in seconds.

請參閱

參考

SqlConnectionInfo 類別

Microsoft.SqlServer.Management.Common 命名空間