ConfigurationSettings.AppSettings-Eigenschaft
HINWEIS: Diese Eigenschaft ist mittlerweile veraltet.
Ruft eine schreibgeschützte NameValueCollection des Anwendungseinstellungsabschnitts der Konfigurationsdatei ab.
Namespace: System.Configuration
Assembly: System (in system.dll)
Syntax
'Declaration
<ObsoleteAttribute("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")> _
Public Shared ReadOnly Property AppSettings As NameValueCollection
'Usage
Dim value As NameValueCollection
value = ConfigurationSettings.AppSettings
[ObsoleteAttribute("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")]
public static NameValueCollection AppSettings { get; }
[ObsoleteAttribute(L"This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")]
public:
static property NameValueCollection^ AppSettings {
NameValueCollection^ get ();
}
/** @property */
public static NameValueCollection get_AppSettings ()
public static function get AppSettings () : NameValueCollection
Eigenschaftenwert
Eine schreibgeschützte NameValueCollection des Anwendungseinstellungsabschnitts der Konfigurationsdatei.
Hinweise
Das appSettings-Abschnittselement der Konfigurationsdatei enthält eine Reihe von Name-Wert-Paaren, die die Anwendung für beliebige Zwecke verwenden kann.
Diese Methode ist veraltet und wird für die Abwärtskompatibilität beibehalten. Verwenden Sie stattdessen die GetSection-Methode.
Hinweis
Die ConfigurationSettings-Klasse stellt nur Abwärtskompatibilität bereit. Stattdessen sollten Sie die ConfigurationManager-Klasse oder die WebConfigurationManager-Klasse verwenden.
Plattformen
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 1.0, 1.1
Veraltet (Compilerwarnung) in 2.0
Siehe auch
Referenz
ConfigurationSettings-Klasse
ConfigurationSettings-Member
System.Configuration-Namespace
NameValueCollection
AppSettingsSection-Klasse