HttpContext.GetSection(String) Método

Definição

Obtém uma seção de configuração especificada para a configuração padrão do aplicativo atual.

public:
 System::Object ^ GetSection(System::String ^ sectionName);
public object GetSection(string sectionName);
member this.GetSection : string -> obj
Public Function GetSection (sectionName As String) As Object

Parâmetros

sectionName
String

O caminho da seção de configuração (no formato XPath) e o nome do elemento de configuração.

Retornos

O especificado ConfigurationSection, null se a seção não existir ou um objeto interno se a seção não estiver acessível em tempo de execução.

Aplica-se a

Confira também