authenticationModules 的 <remove> 項目 (網路設定)
從應用程式移除驗證模組。
<remove
name = "authentication module name"
/>
屬性和項目
下列各節將說明屬性、子項目和父項目。
屬性
屬性 |
描述 |
---|---|
name |
要移除的驗證模組的名稱。 |
子項目
無。
父項目
項目 |
描述 |
---|---|
指定用於驗證網路要求的模組。 |
備註
<remove> 項目會移除在組態檔之前或組態階層中更高層級定義的所有驗證模組。
name 屬性的值必須是有效的類別名稱。
組態檔
這個項目可以用於應用程式組態檔或電腦組態檔 (Machine.config)。
範例
下列程式碼範例會移除驗證模組。
<configuration>
<system.net>
<authenticationModules>
<remove name = "System.Net.NtlmClient" />
</authenticationModules>
</system.net>
</configuration>