<remove> Element for <connectionManagement>

Removes an IP address or DNS name from the connection management list.

<configuration>
   <system.net>
      <connectionManagement>
         <remove>

<remove
   name = "server name or IP address"
/>

Required Attributes

Attribute Description
name An IP address or DNS name.

Remarks

The <remove> element removes the connection management list entry for the specified server that was defined earlier in the configuration file or at a higher level in the configuration file hierarchy.

Example

The following example removes any connection management list entries for the server www.contoso.com and then configures an application to use four connections to the server www.contoso.com and two connections to all other servers.

<configuration>
   <system.net>
      <connectionManagement>
         <remove name = "www.contoso.com"/>
         <add name = "www.contoso.com" maxconnection = "4" />
         <add name = "*" maxconnection = "2" />
      </connectionManagement>
   </system.net>
</configuration>

Configuration File

This element can be used in the application configuration file, the machine configuration file (Machine.config), and the publisher policy file.

See Also

<connectionManagement> Element | Network Settings Schema