<bypasslist> Element
Lists addresses that do not use a proxy.
<configuration>
<system.net>
<defaultProxy>
<bypasslist>
<bypasslist>
</bypasslist>
Element | Description |
---|---|
<add> | Adds an address to the bypass list. |
<clear> | Clears the bypass list. |
<remove> | Removes an address from the bypass list. |
The bypass list contains regular expressions that describe URIs that WebRequest instances access directly instead of through the proxy server.
The following example 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 addresses begin with 192.168.
<configuration>
<system.net>
<defaultProxy>
<bypasslist>
<add address="[a-z]+\.contoso\.com" />
<add address="192\.168\..*" />
</bypasslist>
</defaultProxy>
</system.net>
</configuration>
This element can be used in the application configuration file, the machine configuration file (Machine.config), and the publisher policy file.
<add> Element for <bypasslist> | <defaultproxy> Element | Network Settings Schema