<authenticationModules> 項目 (網路設定)

更新:2007 年 11 月

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

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

<authenticationModules> 
</authenticationModules>

屬性和項目

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

屬性

子項目

項目

描述

add

加入驗證模組至應用程式。

clear

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

remove

從應用程式移除驗證模組。

父項目

項目

描述

system.net

包含指定 .NET Framework 如何連接至網路的設定。

備註

authenticationModule 項目指定使用伺服器執行驗證處理的驗證模組。驗證模組必須實作 IAuthenticationModule 介面。

組態檔

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

範例

下列程式碼範例啟用驗證模組。您應該將 Version 和 PublicKeyToken 的值取代成指定之模組的正確值。

<configuration>
  <system.net>
    <authenticationModules>
      <add type="System.Net.DigestClient, System, Version=2.0.3600.0,
                 Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    </authenticationModules>
  </system.net>
</configuration>

請參閱

參考

網路設定結構描述

IAuthenticationModule

AuthenticationManager