Using the appSettings Section

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

You can use the configuration tools to create and modify .NET Framework <appSettings> sections. Note that the <appSettings> sections must be included in a single file; they should not be distributed across multiple files. Examples of files that you cannot edit include the Machine.config file and <appSettings> sections that include the optional file attribute that specifies a relative path to an external configuration file.

To configure an <appSettings> section

  1. Open the configuration file. For more information, see Using the Configuration Tools.
  2. Add the Application Settings node to the App.config node.
  3. To add a setting, right-click the Application Settings node, click New Setting, and then set the name and value in the Properties pane.