共用方式為


<clear> 繞過清單元素(網路設定)

清除代理繞過清單。

<組態>
   <system.net>
     <defaultProxy>
       <旁路表>
         <清>

語法

<clear/>

屬性和項目

下列章節說明屬性、子元素和父元素。

Attributes

沒有。

子元素

沒有。

父項目

元素 說明
旁路表 提供一組正則表達式,描述不使用代理的位址。

備註

clear 元素會清除繞過清單中的所有項目。

組態檔

此元素可用於應用程式設定檔或機器設定檔(Machine.config)。

Example

以下範例先清除繞過清單,然後將兩個地址加入繞過清單。 第一種繞過 contoso.com 域內所有伺服器的代理;第二種則繞過所有 IP 位址以 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>

另請參閱