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

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

<configuration>
  <system.net>
    <authenticationModules>

Syntax

<authenticationModules>
</authenticationModules>  

屬性和項目

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

屬性

無。

子元素

Element 說明
新增 將驗證模組新增至應用程式。
清除 清除應用程式中的所有驗證模組。
remove 從應用程式移除驗證模組。

父項目

Element 說明
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>  

另請參閱