Condividi tramite


<remove> Element for authenticationModules (Network Settings) 

Removes an authentication module from the application.

<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

authenticationModules

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>

See Also

Reference

Network Settings Schema
IAuthenticationModule
AuthenticationManager