ConnectionSettings.PooledConnectionLifetime 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将连接返回到池时,其创建时间与当前时间进行比较,如果时间跨度(以秒为单位)超过连接生存期指定的值,则会销毁连接。 异常:ConnectionCannotBeChangedException InvalidPropertyValueException
public int PooledConnectionLifetime { get; set; }
member this.PooledConnectionLifetime : int with get, set
Public Property PooledConnectionLifetime As Integer