ConfigurationSettings.AppSettings ConfigurationSettings.AppSettings ConfigurationSettings.AppSettings ConfigurationSettings.AppSettings Property

Definition

Warning

This API is now obsolete.

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

public:
 static property System::Collections::Specialized::NameValueCollection ^ AppSettings { System::Collections::Specialized::NameValueCollection ^ get(); };
[System.Obsolete("This property is obsolete.  Please use System.Configuration.ConfigurationManager.AppSettings")]
[System.Obsolete("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")]
public static System.Collections.Specialized.NameValueCollection AppSettings { get; }
member this.AppSettings : System.Collections.Specialized.NameValueCollection
Public Shared ReadOnly Property AppSettings As NameValueCollection

Property Value

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

Remarks

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.

Note

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

Applies to

See also