Gets the AppSettingsSection data for the current application's default configuration.
Assembly: System.Configuration (in System.Configuration.dll)
Property ValueType: System.Collections.Specialized.NameValueCollection
Returns a NameValueCollection object that contains the contents of the AppSettingsSection object for the current application's default configuration.
A AppSettingsSection object contains the contents of the configuration file's appSettings section.
The following example shows how to use the property. It is part of a larger example that is provided for the ConfigurationManager class.
The example works with configuration elements that are similar to the ones illustrated in the following configuration file. These elements are generated the first time you run the example.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.