Partager via


ConfigurationSettings.AppSettings Propriété

Définition

Attention

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

Attention

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

Obtient une collection en lecture seule des paramètres d'application du fichier de configuration.

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

Valeur de propriété

Collection en lecture seule des paramètres d’application du fichier de configuration.

Attributs

Remarques

L’élément appSettings section du fichier de configuration contient une série de paires nom/valeur que votre application peut utiliser à n’importe quel usage.

Cette méthode est obsolète et est conservée à des fins de compatibilité descendante. Utilisez plutôt la ConfigurationManager.GetSection(String) méthode .

Notes

La classe ConfigurationSettings fournit uniquement une compatibilité descendante. Utilisez la classe ConfigurationManager ou la classe WebConfigurationManager à la place.

S’applique à

Voir aussi