<clear> Element for <connectionManagement>

Clears the connection management list.

<configuration>
   <system.net>
      <connectionManagement>
         <clear>

<clear/>

Remarks

The <clear> element clears all entries from the connection management list that were defined earlier in the configuration file or at a higher level in the configuration file hierarchy.

Example

The following example clears the connection management list and then adds new connection management entries for the server www.contoso.com and all other Internet hosts.

<configuration>
   <system.net>
      <connectionManagement>
         <clear/>
         <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