This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

<< Previous | 1 | Next >>
Switching Configuration Files for Debug and Release ModesSwitching Configuration Files for Debug and Release Modes
Configuration data can be held in the App.config file, which is renamed and copied to the output folder during compilation. If the debug and release modes of a project require different settings, the configuration file can be switched using a build event.
Application Setting EventsApplication Setting Events
Application settings provide a useful means for configuring applications and retaining user settings between program executions. When it is necessary to monitor those settings for changes, four standard events can be subscribed to.
Using Custom Classes with Application SettingsUsing Custom Classes with Application Settings
Application settings can be created using a project's property windows, with those values being transferred into configuration files and classes that simplify their use. The settings data can be of many different types, including custom classes.
Public Application SettingsPublic Application Settings
Application settings, created using Visual Studio's project properties, are of internal scope by default, allowing them to be used from within the same assembly. The scope can be changed to public to allow settings to be shared between projects.
Application SettingsApplication Settings
There are various ways to hold application-wide and user-specific settings externally to a program. One is to set up application settings in a Visual Studio project. These permit strongly typed configuration that can be changed without recompiling.
<< Previous | 1 | Next >>