ConfigurationSettings.AppSettings Egenskap

Definition

Varning

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

Hämtar en skrivskyddad samling programinställningar från konfigurationsfilen.

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

Egenskapsvärde

En skrivskyddad samling programinställningar från konfigurationsfilen.

Attribut

Kommentarer

Avsnittselementet appSettings i konfigurationsfilen innehåller en serie namn/värde-par som programmet kan använda för valfritt ändamål.

Den här metoden är föråldrad och underhålls för bakåtkompatibilitet. Använd ConfigurationManager.GetSection(String) metoden i stället.

Note

Klassen ConfigurationSettings ger endast bakåtkompatibilitet. ConfigurationManager Använd klassen eller WebConfigurationManager klassen i stället.

Gäller för

Se även