Export (0) Print
Expand All

<clear> Element for connectionManagement (Network Settings)

Clears the connection management list.

<configuration> Element
  <system.Net> Element (Network Settings)
    <connectionManagement> Element (Network Settings)
      <clear> Element for connectionManagement (Network Settings)
<clear/>

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

Attributes

None.

Child Elements

None.

Parent Elements

Element

Description

connectionManagement

Specifies the maximum number of connections to a network host.

The clear element clears all entries from the connection management list.

Configuration Files

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

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

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