ConfigurationSettings.GetConfig(String) Método

Definição

Atenção

ConfigurationSettings.GetConfig has been deprecated. Use System.Configuration.ConfigurationManager.GetSection instead.

Atenção

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

Devolve o ConfigurationSection objeto para o nome da secção de configuração passada e o caminho.

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 caminho, como "system.net/settings".

Devoluções

O ConfigurationSection objeto para a configuração passada, nome da secção e caminho.

Atributos

Exceções

Não foi possível recuperar a secção solicitada.

Observações

Este método é obsoleto e é mantido para compatibilidade retroativa. Por favor, use o ConfigurationManager.GetSection(String) método em vez disso.

Aplica-se a

Ver também