<connectionManagement> Element (Network Settings)

 

Specifies the maximum number of connections to a network host.

<configuration>
<system.net>
<connectionManagement>

  
      <connectionManagement>   
</connectionManagement>  

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

ElementDescription
addAdds an IP address or DNS name to the connection management list.
clearClears the connection management list.
removeRemoves an IP address or DNS name from the connection management list.

Parent Elements

ElementDescription
system.netContains settings that specify how the .NET Framework connects to the network.

The connectionManagement element defines the maximum number of connections to a server or group of servers.

This element can be used in the application configuration file or the machine configuration file (Machine.config).

The following code example configures an application to use four connections to the server www.contoso.com and two connections to all other servers.

<configuration>  
  <system.net>  
    <connectionManagement>  
      <add address = "http://www.contoso.com" maxconnection = "4" />  
      <add address = "*" maxconnection = "2" />  
    </connectionManagement>  
  </system.net>  
</configuration>  

ServicePoint
ServicePointManager
Network Settings Schema

Show: