共用方式為


<bypasslist> 項目

列出不使用 Proxy 的位址。

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

<bypasslist>
</bypasslist>

子項目

項目 說明
<add> 將位址加入至略過清單。
<clear> 清除略過清單。
<remove> 移除略過清單中的位址。

備註

略過清單包含描述 WebRequest 執行個體直接 (而非透過 Proxy 伺服器) 存取的 URI 的規則運算式。

範例

以下範例會將兩個位址加入至略過清單。第一個會略過 contoso.com 網域中所有伺服器的 Proxy;第二個會略過 IP 位址以 192.168 開頭的所有伺服器的 Proxy。

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

組態檔

這個項目可在應用程式組態檔、電腦組態檔 (Machine.config) 和發行者原則檔中使用。

請參閱

<bypasslist> 的 <add> 項目 | <defaultproxy> 項目 | 網路設定結構描述