System.Net.ServicePointManager.MaxServicePointIdleTime Property

Gets or sets the maximum idle time of a System.Net.ServicePoint object.

Value: 900000

Syntax

public static int MaxServicePointIdleTime { get; set; }

Value

A int containing the maximum idle time, in milliseconds, of a System.Net.ServicePoint instance.

Exceptions

TypeReason
ArgumentOutOfRangeExceptionThe value specified for a set operation is less than System.Threading.Timeout.Infinite or greater than int.MaxValue

Remarks

The ServicePointManager.MaxServicePointIdleTime property sets the maximum idle time that the System.Net.ServicePointManager object assigns to the ServicePoint.MaxIdleTime property when creating System.Net.ServicePoint objects. Changes to this value affect only System.Net.ServicePoint objects that are initialized after the value is changed.

After a System.Net.ServicePoint object has been idle for the time specified in ServicePoint.MaxIdleTime, it is eligible for garbage collection. A System.Net.ServicePoint object is idle when the list of connections associated with the System.Net.ServicePoint object is empty.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0