ConfigurationSettings.AppSettings Vlastnost
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Upozornění
ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.
Upozornění
This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings
Získá kolekci nastavení aplikace jen pro čtení z konfiguračního souboru.
public:
static property System::Collections::Specialized::NameValueCollection ^ AppSettings { System::Collections::Specialized::NameValueCollection ^ 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")]
public static System.Collections.Specialized.NameValueCollection AppSettings { get; }
[<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
[<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
Hodnota vlastnosti
Kolekce nastavení aplikace jen pro čtení z konfiguračního souboru.
- Atributy
Poznámky
Element appSettings oddílu konfiguračního souboru obsahuje řadu dvojic name/value, které může vaše aplikace použít pro libovolný účel.
Tato metoda je zastaralá a udržuje se kvůli zpětné kompatibilitě. Místo toho použijte metodu ConfigurationManager.GetSection(String) .
Note
Třída ConfigurationSettings poskytuje pouze zpětnou kompatibilitu. ConfigurationManager Místo toho použijte třídu nebo WebConfigurationManager třídu.