语言

ConnectionSettings.PooledConnectionLifetime 属性

定义

将连接返回到池时,其创建时间与当前时间进行比较,如果时间跨度(以秒为单位)超过连接生存期指定的值,则会销毁连接。 异常:ConnectionCannotBeChangedException InvalidPropertyValueException

public int PooledConnectionLifetime { get; set; }
member this.PooledConnectionLifetime : int with get, set
Public Property PooledConnectionLifetime As Integer

属性值

适用于