|
43 | 43 | You can get a <xref:System.Configuration.Configuration> object by using the following classes: |
44 | 44 |
|
45 | 45 | - The <xref:System.Configuration.ConfigurationManager> class, if your entity is a client application. |
46 | | -
|
47 | 46 | - The <xref:System.Web.Configuration.WebConfigurationManager> class, if your entity is a Web application. |
48 | 47 |
|
49 | 48 | The names of the methods that return a <xref:System.Configuration.Configuration> object begin with "Open". |
50 | 49 |
|
51 | 50 | You can also generate a configuration file that represents the configuration settings in a <xref:System.Configuration.Configuration> object. To do this, use one of the following methods: |
52 | 51 |
|
53 | 52 | - Call the <xref:System.Configuration.Configuration.Save*> method to create a new configuration file. |
54 | | -
|
55 | 53 | - Call the <xref:System.Configuration.Configuration.SaveAs*> method to generate a new configuration file at another location. |
56 | 54 |
|
57 | 55 | The names of the methods that create configuration files begin with "Save". |
58 | 56 |
|
59 | 57 | > [!NOTE] |
60 | | -> To enable access to configuration settings on a remote computer, use the Aspnet_regiis command-line tool. For information about creating and accessing custom configuration settings other than the intrinsic sections included in the .NET Framework, refer to <xref:System.Configuration.ConfigurationSection>. |
61 | | -
|
62 | | -
|
| 58 | +> To enable access to configuration settings on a remote computer, use the Aspnet_regiis command-line tool. For information about creating and accessing custom configuration settings other than the intrinsic sections included in .NET, see <xref:System.Configuration.ConfigurationSection>. |
63 | 59 |
|
64 | 60 | ## Examples |
65 | 61 | The following code example demonstrates how to use the <xref:System.Configuration.Configuration> class to access configuration file elements. |
@@ -92,7 +88,6 @@ Note: If you use a static <see langword="GetSection" /> method that takes a path |
92 | 88 | </block> |
93 | 89 | <altmember cref="T:System.Configuration.ConfigurationSection" /> |
94 | 90 | <altmember cref="T:System.Configuration.ConfigurationManager" /> |
95 | | - <related type="Article" href="/dotnet/framework/configure-apps/">Configuration Files</related> |
96 | 91 | </Docs> |
97 | 92 | <Members> |
98 | 93 | <Member MemberName="AppSettings"> |
@@ -178,7 +173,7 @@ Note: If you use a static <see langword="GetSection" /> method that takes a path |
178 | 173 | <format type="text/markdown"><![CDATA[ |
179 | 174 |
|
180 | 175 | ## Remarks |
181 | | - This property enables a consumer of the .NET Framework configuration system to set a function delegate that is used to transform assembly strings found in configuration files. Visual Studio 2010 uses this property when a project is targeted for an earlier version of the .NET Framework. The function makes sure that assembly strings are formatted correctly for the targeted version of the .NET Framework when configuration files are updated. |
| 176 | + This property enables a consumer of the .NET configuration system to set a function delegate that is used to transform assembly strings found in configuration files. The function makes sure that assembly strings are formatted correctly for the targeted version of .NET when configuration files are updated. |
182 | 177 |
|
183 | 178 | ]]></format> |
184 | 179 | </remarks> |
@@ -466,17 +461,9 @@ Note: If you use a static <see langword="GetSection" /> method that takes a path |
466 | 461 | <format type="text/markdown"><![CDATA[ |
467 | 462 |
|
468 | 463 | ## Remarks |
469 | | - The <xref:System.Configuration.Configuration.HasFile> property also returns `true` when the resource represented by this <xref:System.Configuration.Configuration> object inherits settings from a Web.config file. |
470 | 464 |
|
471 | | - The <xref:System.Configuration.Configuration.HasFile> property returns `false` when this <xref:System.Configuration.Configuration> object represents a location-specific configuration. |
472 | | -
|
473 | | -
|
474 | | -
|
475 | | -## Examples |
476 | | - The following code example demonstrates how to use the <xref:System.Configuration.Configuration.HasFile> property. |
| 465 | +The <xref:System.Configuration.Configuration.HasFile> property returns `false` when this <xref:System.Configuration.Configuration> object represents a location-specific configuration. |
477 | 466 |
|
478 | | - :::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Configuration.Configuration/CS/Configuration.cs" id="Snippet9"::: |
479 | | - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Configuration.Configuration/VB/Configuration.vb" id="Snippet9"::: |
480 | 467 |
|
481 | 468 | ]]></format> |
482 | 469 | </remarks> |
@@ -1138,7 +1125,7 @@ Note: If you use a static <see langword="GetSection" /> method that takes a path |
1138 | 1125 | <format type="text/markdown"><![CDATA[ |
1139 | 1126 |
|
1140 | 1127 | ## Remarks |
1141 | | - This property enables a consumer of the .NET Framework configuration system to set a function delegate that is used to transform type strings found in configuration files. Visual Studio 2010 uses this property when a project is targeted for an earlier version of the .NET Framework. The function makes sure that type strings are formatted correctly for the targeted version of the .NET Framework when configuration files are updated. |
| 1128 | + This property enables a consumer of the .NET configuration system to set a function delegate that is used to transform type strings found in configuration files. The function makes sure that type strings are formatted correctly for the targeted version of the .NET when configuration files are updated. |
1142 | 1129 |
|
1143 | 1130 | ]]></format> |
1144 | 1131 | </remarks> |
|
0 commit comments