ConfigurationSettings.AppSettings Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Let op
ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.
Let op
This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings
Hiermee haalt u een alleen-lezen verzameling van de toepassingsinstellingen op uit het configuratiebestand.
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
Waarde van eigenschap
Een alleen-lezen verzameling van de toepassingsinstellingen uit het configuratiebestand.
- Kenmerken
Opmerkingen
Het appSettings sectie-element van het configuratiebestand bevat een reeks naam-/waardeparen die uw toepassing voor elk doel kan gebruiken.
Deze methode is verouderd en blijft behouden voor achterwaartse compatibiliteit. Gebruik in plaats daarvan de ConfigurationManager.GetSection(String) methode.
Note
De ConfigurationSettings klasse biedt alleen compatibiliteit met eerdere versies. Gebruik in plaats daarvan de ConfigurationManager klasse of WebConfigurationManager klasse.