System.Net.ServicePoint.ConnectionLimit Property

Gets or sets the maximum number of connections allowed on this System.Net.ServicePoint object.

Syntax

public int ConnectionLimit { get; set; }

Value

A int containing the maximum number of simultaneous connections allowed on the current System.Net.ServicePoint.

Exceptions

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

Remarks

The ServicePoint.ConnectionLimit property sets the maximum number of connections that the System.Net.ServicePoint object can make to an Internet resource. The value of the ServicePoint.ConnectionLimit property is set to the value of the ServicePointManager.DefaultConnectionLimit property when the System.Net.ServicePoint object is created; subsequent changes to ServicePointManager.DefaultConnectionLimit have no effect on existing System.Net.ServicePoint objects.

Requirements

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