<add> Element for authenticationModules (Network Settings)
Adds an authentication module to the application.
<configuration>
<system.net>
<authenticationModules>
<add>
<add
type="type_fullname, assembly_fullname"
/>
The following sections describe attributes, child elements, and parent elements.
Attribute | Description |
---|---|
type |
The fully qualified type name (indicated by the FullName property) and the assembly name (indicated by the FullName property), separated by a comma. |
None.
Element | Description |
---|---|
authenticationModules | Specifies modules used to authenticate network requests. |
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.
The value for the type
attribute should be a valid type name and corresponding assembly name, separated by a comma.
This element can be used in the application configuration file or the machine configuration file (Machine.config).
The following example enables the default authentication modules. You should replace the values for Version and PublicKeyToken with the correct values for the specified module.
<configuration>
<system.net>
<authenticationModules>
<add type="System.Net.DigestClient, System, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NegotiateClient, System, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.KerberosClient, System, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NtlmClient, System, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.BasicClient, System, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</authenticationModules>
</system.net>
</configuration>
Feedback pentru .NET
.NET este un proiect open source. Selectați un link pentru a oferi feedback: