HttpContext.GetSection(String) Methode

Definitie

Hiermee haalt u een opgegeven configuratiesectie op voor de standaardconfiguratie van de huidige toepassing.

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

Parameters

sectionName
String

Het pad naar de configuratiesectie (in XPath-indeling) en de naam van het configuratie-element.

Retouren

De opgegeven ConfigurationSection, null als de sectie niet bestaat of een intern object als de sectie niet toegankelijk is tijdens runtime.

Van toepassing op

Zie ook