次の方法で共有


ConnectionSettings.PooledConnectionLifetime Property

Definition

When a connection is returned to the pool, its creation time is compared with the current time, and the connection is destroyed if that time span (in seconds) exceeds the value specified by connection lifetime. Exceptions: ConnectionCannotBeChangedException InvalidPropertyValueException

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

Property Value

Applies to