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

System.Net.ServicePointManager.MaxServicePoints Property

Gets or sets the maximum number of System.Net.ServicePoint instances managed by this class at any time. [Edit]

Value: 0

public static int MaxServicePoints { set; get; }

Value

A int containing the maximum number of System.Net.ServicePoint instances to maintain. [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeExceptionThe value specified for a set operation is less than zero or greater than int.MaxValue [Edit]

Remarks

If this property is set to a value that is less than the number of System.Net.ServicePoint instances currently in existence, the System.Net.ServicePointManager deletes the System.Net.ServicePoint instances with the longest idle times. If the number of System.Net.ServicePoint instances with active connections is greater than the value of ServicePointManager.MaxServicePoints, the System.Net.ServicePointManager deletes System.Net.ServicePoint instances as they become idle.

Note: The default value of the ServicePointManager.MaxServicePoints property is 0, which indicates there is no limit to the number of System.Net.ServicePoint instances.

[Edit]

Requirements

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