ConfigurationSettings.AppSettings Property

Note: This API is now obsolete.

Gets a read-only NameValueCollection of the application settings section of the configuration file.

Namespace:   System.Configuration
Assembly:  System (in System.dll)

[ObsoleteAttribute("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")]
public static NameValueCollection AppSettings { get; }

Property Value

Type: System.Collections.Specialized.NameValueCollection

A read-only NameValueCollection of the application settings section from the configuration file.

The appSettings section element of the configuration file contains a series of name/value pairs that your application can use for any purpose.

This method is deprecated and is maintained for backward compatibility. Please use the GetSection method instead.


The ConfigurationSettings class provides backward compatibility only. You should use the ConfigurationManager class or WebConfigurationManager class instead.

.NET Framework
Available since 1.1
Return to top