ConfigurationValueReader Class
ConfigurationValueReader is a helper class that reads values from the configuration file or from the ConfigurationDetails object. The following table defines the properties of the ConfigurationValueReader class.
|
Name |
Type |
Description |
|---|---|---|
|
Details |
ConfigurationDetails |
The current ConfigurationDetails object. |
|
Settings |
System.Configuration.ApplicationSettingsBase |
The current ApplicationSettingsBase object. |
Methods of the ConfigurationValueReader class:
|
Signature |
Description |
|---|---|
|
public string ReadAppSettings(string key) |
This method reads from the appSettings of the config file or the configuration Web service. |
|
public string ReadSettings(string key) |
This method reads from the Settings class (which in turns reads from the applicationSettings of the config file) or the configuration Web service. |
|
public object ReadSection(string sectionName, IConfigurationSectionHandler configSectionHandler) |
This method reads from a specific section of the config file or the configuration Web service. |