Číst v angličtině

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

Produkt Verze (zastaralé)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
Windows Desktop (3.0, 3.1, 5, 6, 7, 8, 9)

Viz také