mscorlib(4.0.0.0) API with additions
System.Configuration.ConfigurationSettings Class Reference

Provides runtime versions 1.0 and 1.1 support for reading configuration sections and common configuration settings. More...

Static Public Member Functions

static object GetConfig (string sectionName)
 Returns the T:System.Configuration.ConfigurationSection object for the passed configuration section name and path. More...
 

Properties

static NameValueCollection AppSettings [get]
 Gets a read-only T:System.Collections.Specialized.NameValueCollection of the application settings section of the configuration file. More...
 

Detailed Description

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.

Member Function Documentation

◆ 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
sectionNameA 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.ConfigurationExceptionUnable to retrieve the requested section.

Definition at line 28 of file ConfigurationSettings.cs.

Property Documentation

◆ AppSettings

NameValueCollection System.Configuration.ConfigurationSettings.AppSettings
staticget

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: