規範用於驗證網路請求的模組。
<組態>
<system.net>
<認證模組>
語法
<authenticationModules>
</authenticationModules>
屬性和項目
下列章節說明屬性、子元素和父元素。
Attributes
沒有。
子元素
| 元素 | 說明 |
|---|---|
| add | 為應用程式新增一個認證模組。 |
| 清除 | 清除應用程式中的所有認證模組。 |
| remove | 移除應用程式中的認證模組。 |
父項目
| 元素 | 說明 |
|---|---|
| system.net | 包含指定 .NET Framework 如何連接網路的設定。 |
備註
該 authenticationModule 元素指定執行與伺服器認證過程的認證模組。 必須由認證模組實作該 IAuthenticationModule 介面。
組態檔
此元素可用於應用程式設定檔或機器設定檔(Machine.config)。
Example
以下範例啟用認證模組。 你應該把 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>