TcpConnectionPoolSettings.IdleTimeout 属性

定义

获取或设置连接在断开前可在连接池中空闲的最长时间。Gets or sets the maximum time the connection can be idle in the connection pool before being disconnected.

public:
 property TimeSpan IdleTimeout { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan IdleTimeout { get; set; }
member this.IdleTimeout : TimeSpan with get, set
Public Property IdleTimeout As TimeSpan

属性值

TimeSpan

返回一个 TimeSpan 结构,该结构指示连接在断开前可在连接池中空闲的最长时间。Returns a TimeSpan structure that indicates the maximum time the connection can be idle in the connection pool before being disconnected.

例外

值小于零。The value is less than zero.

适用于