HttpContext.GetSection(String) Metoda

Definice

Získá zadaný konfigurační oddíl pro aktuální výchozí konfiguraci aplikace.

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

Parametry

sectionName
String

Cesta k oddílu konfigurace (ve formátu XPath) a název elementu konfigurace.

Návraty

Zadaný ConfigurationSectionobjekt , null pokud oddíl neexistuje, nebo interní objekt, pokud oddíl není přístupný za běhu.

Platí pro

Viz také