ConfigurationSettings.GetConfig(String) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Cuidado
ConfigurationSettings.GetConfig has been deprecated. Use System.Configuration.ConfigurationManager.GetSection instead.
Cuidado
This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection
Retorna o ConfigurationSection objeto para o nome e o caminho da seção de configuração passados.
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
Parâmetros
- sectionName
- String
Um nome de configuração e um caminho, como "system.net/settings".
Retornos
O ConfigurationSection objeto para o nome e o caminho da seção de configuração passados.
- Atributos
Exceções
Não é possível recuperar a seção solicitada.
Comentários
Esse método é obsoleto e é mantido para compatibilidade com versões anteriores. Em vez disso, use o ConfigurationManager.GetSection(String) método.