<clear> Element for connectionManagement (Network Settings)
Clears the connection management list.
<configuration>
<system.net>
<connectionManagement>
<clear>
Syntax
<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 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>
See also
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.