HttpContext.GetSection(String) Método

Definição

Recebe uma secção de configuração especificada para a configuração padrão da aplicação 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 secção de configuração (no formato XPath) e o nome do elemento de configuração.

Devoluções

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

Aplica-se a

Ver também