authenticationModules 的 <clear> 項目 (網路設定)

更新:2007 年 11 月

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

<configuration> 項目
  <system.Net> 項目 (網路設定)
    <authenticationModules> 項目 (網路設定)
      authenticationModules 的 <clear> 項目 (網路設定)

<clear/>

屬性和項目

下列小節將說明屬性、子項目和父項目。

屬性

無。

子項目

無。

父項目

項目

說明

authenticationModules

指定用於驗證網路要求的模組。

備註

clear 項目會移除在組態檔之前或組態階層中更高層級定義的所有驗證模組。

組態檔

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

範例

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

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

請參閱

參考

網路設定結構描述

IAuthenticationModule

AuthenticationManager