Share via


<clear> Element for connectionManagement (Network Settings)

Clears the connection management list.

<clear/>

Attributes and Elements

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.

Remarks

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).

Example

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 = "https://www.contoso.com" maxconnection = "4" />
      <add address = "*" maxconnection = "2" />
    </connectionManagement>
  </system.net>
</configuration>

See Also

Reference

Network Settings Schema
ServicePoint
ServicePointManager