<remove> Element for authenticationModules (Network Settings)

Removes an authentication module from the application.

<configuration>
  <system.net>
    <authenticationModules>
      <remove>

Syntax

<remove
   type="authentication module name"
/>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
type 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 type 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 example removes an authentication module.

<configuration>  
  <system.net>  
    <authenticationModules>  
      <remove type="System.Net.NtlmClient" />  
    </authenticationModules>  
  </system.net>  
</configuration>  

See also