ConfigurationSettings.AppSettings Eigenschaft

Definition

Achtung

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

Achtung

ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.

Achtung

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

Ruft eine schreibgeschützte Sammlung der Anwendungseinstellungen aus der Konfigurationsdatei ab.

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; }
[System.Obsolete("ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.")]
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
[<System.Obsolete("ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.")>]
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

Eigenschaftswert

NameValueCollection

Eine schreibgeschützte Auflistung der Anwendungseinstellungen aus der Konfigurationsdatei.

Attribute

Hinweise

Das appSettings Abschnittselement der Konfigurationsdatei enthält eine Reihe von Namens-Wert-Paaren, die Ihre Anwendung für jeden beliebigen Zweck verwenden kann.

Diese Methode ist veraltet und wird für die Abwärtskompatibilität beibehalten. Verwenden Sie stattdessen die ConfigurationManager.GetSection(String) Methode.

Hinweis

Die ConfigurationSettings-Klasse stellt nur Abwärtskompatibilität bereit. Stattdessen sollten Sie die ConfigurationManager- oder WebConfigurationManager-Klasse verwenden.

Gilt für:

Siehe auch