Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Removes an authentication module from the application.
<configuration> Element
<system.net> Element (Network Settings)
<authenticationModules> Element (Network Settings)
<remove> Element for authenticationModules (Network Settings)
<remove
name = "authentication module name"
/>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
|---|---|
name |
The name of the authentication module to remove. |
Child Elements
None.
Parent Elements
Element |
Description |
|---|---|
Specifies modules used to authenticate network requests. |
Remarks
The <remove> element removes authentication modules that were defined earlier in the configuration file or at a higher level in the configuration hierarchy.
The value for the name attribute should be a valid class name.
Configuration Files
This element can be used in the application configuration file or the machine configuration file (Machine.config).
Example
The following code example removes an authentication module.
<configuration>
<system.net>
<authenticationModules>
<remove name = "System.Net.NtlmClient" />
</authenticationModules>
</system.net>
</configuration>