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

System.Net.ServicePointManager.DefaultConnectionLimit Property

Gets or sets the maximum number of concurrent connections allowed by a System.Net.ServicePoint instance.

Value: 2

public static int DefaultConnectionLimit { set; get; }

Value

A int containing the maximum number of concurrent connections allowed by a System.Net.ServicePoint instance.

Exceptions

TypeReason
ArgumentOutOfRangeExceptionThe value specified for a set operation is less than or equal to zero.

Remarks

The ServicePointManager.DefaultConnectionLimit property sets the default maximum number of concurrent connections that the System.Net.ServicePointManager assigns to the ServicePoint.ConnectionLimit property when creating System.Net.ServicePoint instances.

Note: Changing the ServicePointManager.DefaultConnectionLimit property has no effect on existing System.Net.ServicePoint instances; it affects only System.Net.ServicePoint instances that are initialized after the change.

Requirements

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