ConfigurationSettings.AppSettings Property

Definition

Caution

This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings

Caution

This property is obsolete. Please use System.Configuration.ConfigurationManager.AppSettings

Gets a read-only collection of the application settings from the configuration file.

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

Property Value

NameValueCollection

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

Attributes

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 obsolete and is maintained for backward compatibility. Please use the ConfigurationManager.GetSection(String) method instead.

Note

The ConfigurationSettings class provides backward compatibility only. Use the ConfigurationManager class or WebConfigurationManager class instead.

Applies to

See also