|
2 | 2 | title: "<add> Element for authenticationModules (Network Settings)" |
3 | 3 | description: The <add> network settings element for connectionManagement adds an IP address or DNS name to the connection management list in the .NET Framework. |
4 | 4 | ms.date: "03/30/2017" |
5 | | -f1_keywords: |
| 5 | +f1_keywords: |
6 | 6 | - "http://schemas.microsoft.com/.NetConfiguration/v2.0#add" |
7 | 7 | - "http://schemas.microsoft.com/.NetConfiguration/v2.0#configuration/system.net/authenticationModules/add" |
8 | | -helpviewer_keywords: |
| 8 | +helpviewer_keywords: |
9 | 9 | - "authenticationModules, add element" |
10 | 10 | - "add element, authenticationModules" |
11 | 11 | - "<authenticationModules>, add element" |
12 | 12 | - "<add> element, authenticationModules" |
13 | 13 | ms.assetid: 333c5fb0-a2ab-4db8-8531-a7fe37bb9b5b |
14 | 14 | --- |
15 | | -# \<add> Element for authenticationModules (Network Settings) |
| 15 | +# `<add>` Element for authenticationModules (Network Settings) |
16 | 16 |
|
17 | | -Adds an authentication module to the application. |
| 17 | +Adds an authentication module to the application. |
18 | 18 |
|
19 | 19 | [**\<configuration>**](../configuration-element.md)\ |
20 | 20 | [**\<system.net>**](system-net-element-network-settings.md)\ |
21 | 21 | [**\<authenticationModules>**](authenticationmodules-element-network-settings.md)\ |
22 | 22 | **\<add>** |
23 | 23 |
|
24 | | -## Syntax |
25 | | - |
26 | | -```xml |
| 24 | +## Syntax |
| 25 | + |
| 26 | +```xml |
27 | 27 | <add |
28 | 28 | type="type_fullname, assembly_fullname" |
29 | | -/> |
30 | | -``` |
31 | | - |
32 | | -## Attributes and Elements |
33 | | - |
34 | | - The following sections describe attributes, child elements, and parent elements. |
35 | | - |
36 | | -### Attributes |
37 | | - |
38 | | -|**Attribute**|**Description**| |
39 | | -|-------------------|---------------------| |
40 | | -|`type`|The fully qualified type name (indicated by the <xref:System.Type.FullName%2A> property) and the assembly name (indicated by the <xref:System.Reflection.Assembly.FullName%2A> property), separated by a comma.| |
41 | | - |
42 | | -### Child Elements |
43 | | - |
44 | | - None. |
45 | | - |
46 | | -### Parent Elements |
47 | | - |
48 | | -|**Element**|**Description**| |
49 | | -|-----------------|---------------------| |
50 | | -|[authenticationModules](authenticationmodules-element-network-settings.md)|Specifies modules used to authenticate network requests.| |
51 | | - |
52 | | -## Remarks |
53 | | - |
54 | | - 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. |
55 | | - |
56 | | - The value for the `type` attribute should be a valid type name and corresponding assembly name, separated by a comma. |
57 | | - |
58 | | -## Configuration Files |
59 | | - |
60 | | - This element can be used in the application configuration file or the machine configuration file (Machine.config). |
61 | | - |
62 | | -## Example |
63 | | - |
64 | | - 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. |
65 | | - |
66 | | -```xml |
67 | | -<configuration> |
68 | | - <system.net> |
69 | | - <authenticationModules> |
70 | | - <add type="System.Net.DigestClient, System, Version=2.0.3600.0, |
71 | | - Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
72 | | - <add type="System.Net.NegotiateClient, System, Version=2.0.3600.0, |
73 | | - Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
74 | | - <add type="System.Net.KerberosClient, System, Version=2.0.3600.0, |
75 | | - Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
76 | | - <add type="System.Net.NtlmClient, System, Version=2.0.3600.0, |
77 | | - Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
78 | | - <add type="System.Net.BasicClient, System, Version=2.0.3600.0, |
79 | | - Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
80 | | - </authenticationModules> |
81 | | - </system.net> |
82 | | -</configuration> |
83 | | -``` |
84 | | - |
| 29 | +/> |
| 30 | +``` |
| 31 | + |
| 32 | +## Attributes and Elements |
| 33 | + |
| 34 | + The following sections describe attributes, child elements, and parent elements. |
| 35 | + |
| 36 | +### Attributes |
| 37 | + |
| 38 | +|**Attribute**|**Description**| |
| 39 | +|-------------------|---------------------| |
| 40 | +|`type`|The fully qualified type name (indicated by the <xref:System.Type.FullName%2A> property) and the assembly name (indicated by the <xref:System.Reflection.Assembly.FullName%2A> property), separated by a comma.| |
| 41 | + |
| 42 | +### Child Elements |
| 43 | + |
| 44 | + None. |
| 45 | + |
| 46 | +### Parent Elements |
| 47 | + |
| 48 | +|**Element**|**Description**| |
| 49 | +|-----------------|---------------------| |
| 50 | +|[authenticationModules](authenticationmodules-element-network-settings.md)|Specifies modules used to authenticate network requests.| |
| 51 | + |
| 52 | +## Remarks |
| 53 | + |
| 54 | + 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. |
| 55 | + |
| 56 | + The value for the `type` attribute should be a valid type name and corresponding assembly name, separated by a comma. |
| 57 | + |
| 58 | +## Configuration Files |
| 59 | + |
| 60 | + This element can be used in the application configuration file or the machine configuration file (Machine.config). |
| 61 | + |
| 62 | +## Example |
| 63 | + |
| 64 | + 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. |
| 65 | + |
| 66 | +```xml |
| 67 | +<configuration> |
| 68 | + <system.net> |
| 69 | + <authenticationModules> |
| 70 | + <add type="System.Net.DigestClient, System, Version=2.0.3600.0, |
| 71 | + Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
| 72 | + <add type="System.Net.NegotiateClient, System, Version=2.0.3600.0, |
| 73 | + Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
| 74 | + <add type="System.Net.KerberosClient, System, Version=2.0.3600.0, |
| 75 | + Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
| 76 | + <add type="System.Net.NtlmClient, System, Version=2.0.3600.0, |
| 77 | + Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
| 78 | + <add type="System.Net.BasicClient, System, Version=2.0.3600.0, |
| 79 | + Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
| 80 | + </authenticationModules> |
| 81 | + </system.net> |
| 82 | +</configuration> |
| 83 | +``` |
| 84 | + |
85 | 85 | ## See also |
86 | 86 |
|
87 | 87 | - <xref:System.Net.IAuthenticationModule> |
|
0 commit comments