ConfigurationSettings.GetConfig(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
ConfigurationSettings.GetConfig has been deprecated. Use System.Configuration.ConfigurationManager.GetSection instead.
Attention
This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection
Retourne l’objet ConfigurationSection du nom et du chemin d’accès de la section de configuration passés.
public:
static System::Object ^ GetConfig(System::String ^ sectionName);
[System.Obsolete("ConfigurationSettings.GetConfig has been deprecated. Use System.Configuration.ConfigurationManager.GetSection instead.")]
public static object GetConfig(string sectionName);
public static object GetConfig(string sectionName);
[System.Obsolete("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection")]
public static object GetConfig(string sectionName);
[<System.Obsolete("ConfigurationSettings.GetConfig has been deprecated. Use System.Configuration.ConfigurationManager.GetSection instead.")>]
static member GetConfig : string -> obj
static member GetConfig : string -> obj
[<System.Obsolete("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection")>]
static member GetConfig : string -> obj
Public Shared Function GetConfig (sectionName As String) As Object
Paramètres
- sectionName
- String
Nom et chemin de configuration, tels que « system.net/settings ».
Retours
Objet ConfigurationSection du nom et du chemin d’accès de la section de configuration passés.
- Attributs
Exceptions
Impossible de récupérer la section demandée.
Remarques
Cette méthode est obsolète et est maintenue pour la compatibilité descendante. Utilisez plutôt la ConfigurationManager.GetSection(String) méthode.