authenticationModules 的 <remove> 元素(网络设置)
从应用程序中移除身份验证模块。
configuration
<system.net>
<authenticationModules>
<remove>
语法
<remove
type="authentication module name"
/>
特性和元素
下列各节描述了特性、子元素和父元素。
特性
Attribute | 说明 |
---|---|
type | 要删除的身份验证模块的名称。 |
子元素
无。
父元素
元素 | 说明 |
---|---|
authenticationModules | 指定用于验证网络请求的模块。 |
注解
remove
元素用于删除之前在配置文件或配置层次结构的较高级别中定义的身份验证模块。
属性 type
的值应为有效的类名。
配置文件
此元素可在应用程序配置文件或计算机配置文件 (Machine.config) 中使用。
示例
以下示例移除身份验证模块。
<configuration>
<system.net>
<authenticationModules>
<remove type="System.Net.NtlmClient" />
</authenticationModules>
</system.net>
</configuration>