AppSettings Property
.NET Framework Class Library
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)
Visual Basic (Declaration)
<ObsoleteAttribute("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")> _
Public Shared ReadOnly Property AppSettings As NameValueCollection
Visual Basic (Usage)
Dim value As NameValueCollection

value = ConfigurationSettings.AppSettings
C#
[ObsoleteAttribute("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")]
public static NameValueCollection AppSettings { get; }
Visual C++
[ObsoleteAttribute(L"This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")]
public:
static property NameValueCollection^ AppSettings {
    NameValueCollection^ get ();
}
JScript
public static function get AppSettings () : NameValueCollection

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.

NoteNote:

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

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.

.NET Framework

Supported in: 1.1, 1.0
Obsolete (compiler warning) in 3.5
Obsolete (compiler warning) in 3.5 SP1
Obsolete (compiler warning) in 3.0
Obsolete (compiler warning) in 3.0 SP1
Obsolete (compiler warning) in 3.0 SP2
Obsolete (compiler warning) in 2.0
Obsolete (compiler warning) in 2.0 SP1
Obsolete (compiler warning) in 2.0 SP2
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Page correction as of .NET 3.5      Dessus   |   Edit   |   Show History
  
    Please Note

System.Configuration.ConfigurationManager.AppSettings is actually System.Configuration.ConfigurationSettings.AppSettings


Processing
Page view tracker