HttpContextBase.GetSection(String) Método

Definição

Quando substituída em uma classe derivada, obtém a seção de configuração especificada da configuração de padrão do aplicativo atual.When overridden in a derived class, gets the specified configuration section of the current application's default configuration.

public:
 virtual System::Object ^ GetSection(System::String ^ sectionName);
public virtual object GetSection (string sectionName);
abstract member GetSection : string -> obj
override this.GetSection : string -> obj
Public Overridable 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.The configuration section path (in XPath format) and the configuration element name.

Retornos

Object

A seção especificada ou null, se a seção não existir.The specified section, or null if the section does not exist.

Exceções

Sempre.Always.

Aplica-se a