Share via


<clear> Element for <bypasslist>

Clears the proxy bypass list.

<configuration>
   <system.net>
      <defaultProxy>
         <bypasslist>
            <clear>

<clear/>

Remarks

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

Example

The following example clears the bypass list and then adds two addresses to the bypass list. The first bypasses the proxy for all servers in the contoso.com domain; the second bypasses the proxy for all servers whose IP address begins with 192.168.

<configuration>
   <system.net>
      <defaultProxy>
         <bypasslist>
            <clear/>
            <add address="[a-z]+\.contoso\.com" />
            <add address="192\.168\..*" />
         </bypasslist>
      </defaultProxy>
   </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

<bypasslist> Element | Network Settings Schema