Provides runtime versions 1.0 and 1.1 support for reading configuration sections and common configuration settings.
More...
|
static object | GetConfig (string sectionName) |
| Returns the T:System.Configuration.ConfigurationSection object for the passed configuration section name and path. More...
|
|
|
static NameValueCollection | AppSettings [get] |
| Gets a read-only T:System.Collections.Specialized.NameValueCollection of the application settings section of the configuration file. More...
|
|
Provides runtime versions 1.0 and 1.1 support for reading configuration sections and common configuration settings.
Definition at line 6 of file ConfigurationSettings.cs.
◆ GetConfig()
static object System.Configuration.ConfigurationSettings.GetConfig |
( |
string |
sectionName | ) |
|
|
static |
Returns the T:System.Configuration.ConfigurationSection object for the passed configuration section name and path.
- Parameters
-
sectionName | A configuration name and path, such as "system.net/settings". |
- Returns
- The T:System.Configuration.ConfigurationSection object for the passed configuration section name and path.The T:System.Configuration.ConfigurationSettings class provides backward compatibility only. You should use the T:System.Configuration.ConfigurationManager class or T:System.Web.Configuration.WebConfigurationManager class instead.
- Exceptions
-
T:System.Configuration.ConfigurationException | Unable to retrieve the requested section. |
Definition at line 28 of file ConfigurationSettings.cs.
◆ AppSettings
Gets a read-only T:System.Collections.Specialized.NameValueCollection of the application settings section of the configuration file.
- Returns
- A read-only T:System.Collections.Specialized.NameValueCollection of the application settings section from the configuration file.
Definition at line 12 of file ConfigurationSettings.cs.
The documentation for this class was generated from the following file: