Export (0) Print
Expand All

ServicePointManager.MaxServicePointIdleTime Property

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

Namespace:  System.Net
Assembly:  System (in System.dll)

static member MaxServicePointIdleTime : int with get, set

Property Value

Type: System.Int32
The maximum idle time, in milliseconds, of a ServicePoint object. The default value is 100,000 milliseconds (100 seconds).

ExceptionCondition
ArgumentOutOfRangeException

MaxServicePointIdleTime is less than Timeout.Infinite or greater than Int32.MaxValue.

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

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

The following code example sets this property.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft