Compartilhar via


<remove> Element for <bypasslist>

Removes an IP address or DNS name from the proxy bypass list.

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

<remove
   name = "regular expression"
/>

Required Attributes

Attribute Description
name A regular expression describing an IP address or DNS name.

Remarks

The <remove> element removes regular expressions describing IP addresses or DNS server names from the list of addresses that bypass a proxy server that were defined earlier in the configuration file or at a higher level in the configuration hierarchy.

Example

The following example removes any previous definition for the contoso.com domain, 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>
            <remove name = "[a-z]+\.contoso\.com" />
            <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