Mono Class Library: System.Net.ServicePoint Overview | Members

System.Net.ServicePoint.MaxIdleTime Property

Gets or sets the maximum amount of time the current instance can remain idle (unconnected to a host). [Edit]

public int MaxIdleTime { set; get; }

Value

A int containing the number of milliseconds that a System.Net.ServicePoint can remain idle before it is released by the System.Net.ServicePointManager and subsequently freed. [Edit]

Exceptions

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

Remarks

Note: When the difference between the current time and ServicePoint.IdleSince exceeds the value of ServicePoint.MaxIdleTime, the current instance is released by the System.Net.ServicePointManager and subsequently freed.

The default value of this property is the value of the ServicePointManager.MaxServicePointIdleTime property at the time the System.Net.ServicePoint was created.

[Edit]

Requirements

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