Sdílet prostřednictvím


ConfigurationSettings.AppSettings Vlastnost

Definice

Upozornění

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

Upozornění

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

Získá jen pro čtení kolekce nastavení aplikace z konfiguračního souboru.

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 method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")>]
static member AppSettings : System.Collections.Specialized.NameValueCollection
[<System.Obsolete("ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.")>]
static member AppSettings : System.Collections.Specialized.NameValueCollection
static member AppSettings : System.Collections.Specialized.NameValueCollection
Public Shared ReadOnly Property AppSettings As NameValueCollection

Hodnota vlastnosti

Kolekce nastavení aplikace jen pro čtení z konfiguračního souboru.

Atributy

Poznámky

Element appSettings section konfiguračního souboru obsahuje řadu dvojic název/hodnota, které může vaše aplikace použít pro libovolný účel.

Tato metoda je zastaralá a udržuje se z důvodu zpětné kompatibility. Místo toho použijte metodu ConfigurationManager.GetSection(String) .

Poznámka

Třída ConfigurationSettings poskytuje pouze zpětnou kompatibilitu. Místo toho ConfigurationManager použijte třídu nebo WebConfigurationManager třídu.

Platí pro

Viz také