共用方式為


authenticationModules 的 <clear> 元素 (網路設定)

從應用程式清除所有驗證模組。

<configuration>
  <system.net>
    <authenticationModules>
      <clear>

Syntax

<clear/>  

屬性和項目

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

屬性

無。

子元素

無。

父項目

Element 說明
authenticationModules 指定用來驗證網路要求的模組。

備註

clear 元素會移除先前在組態檔或組態階層中較高層級定義的驗證模組。

組態檔

此項目可以用於應用程式組態檔或電腦組態檔 (Machine.config)。

範例

下列範例會移除所有已設定的驗證模組。

<configuration>  
  <system.net>  
    <authenticationModules>  
      <clear/>  
    </authenticationModules>  
  </system.net>  
</configuration>  

另請參閱