<clear> Element for bypasslist (Network Settings)
Clears the proxy bypass list.
<configuration>
<system.net>
<defaultProxy>
<bypasslist>
<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 |
---|---|
bypasslist | Provides a set of regular expressions that describe addresses that do not use a proxy. |
Remarks
The clear
element clears all entries from the bypass 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 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\.\d{1,3}\.\d{1,3}" />
</bypasslist>
</defaultProxy>
</system.net>
</configuration>
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om