Uredi

Deli z drugimi prek


ConnectionManagementElement.MaxConnection Property

Definition

Gets or sets the maximum number of connections that can be made to a remote computer.

public:
 property int MaxConnection { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxconnection", DefaultValue=1, IsRequired=true)]
public int MaxConnection { get; set; }
[<System.Configuration.ConfigurationProperty("maxconnection", DefaultValue=1, IsRequired=true)>]
member this.MaxConnection : int with get, set
Public Property MaxConnection As Integer

Property Value

An integer that specifies the maximum number of connections.

Attributes

Remarks

This property specifies how many simultaneous connections are allowed between the local computer and the remote computer. The remote computer is specified using the Address property.

The MaxConnection property is per WebRequest.ConnectionGroupName. If an application is not changing WebRequest.ConnectionGroupName from the default, then the MaxConnection property applies to the entire application domain. If only a single application domain is running in your application, then the MaxConnection property setting is application-wide.

Applies to