Compartilhar via


<add> Element for <authenticationModules>

Adds an authentication module to the application.

<configuration>
   <system.net>
      <authenticationModules>
         <add>

<add
   type = "Assembly, Class"
/>

Required Attributes

Attribute Description
type The assembly and class name of the module that implements the authentication module.

Remarks

The <add> element adds an authentication module to the end of the list of registered authentication modules. Authentication modules are called in the order in which they were added to the list.

Example

The following example configures a custom authentication module.

<configuration>
   <system.net>
      <authenticationModules>
         <add type="MyAuthModule.dll, MyAuthModule" />
      </authenticationModules>
   </system.net>
</configuration>

Configuration File

This element can be used in the application configuration file, the machine configuration file (Machine.config), and the publisher policy file.

See Also

<authenticationModules> Element | Network Settings Schema