TcpConnectionPoolSettings.IdleTimeout Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the maximum time that the connection can be idle in the connection pool before being disconnected.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel.NetTcp (in System.ServiceModel.NetTcp.dll)

Syntax

'Declaration
Public Property IdleTimeout As TimeSpan
public TimeSpan IdleTimeout { get; set; }

Property Value

Type: System.TimeSpan
A TimeSpan structure that indicates the maximum time that the connection can be idle in the connection pool before being disconnected.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The value is less than zero.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.