HttpContext.GetSection Method (String)
.NET Framework (current version)
Gets a specified configuration section for the current application's default configuration.
Assembly: System.Web (in System.Web.dll)
Parameters
- sectionName
-
Type:
System.String
The configuration section path (in XPath format) and the configuration element name.
Return Value
Type: System.ObjectThe specified ConfigurationSection, null if the section does not exist, or an internal object if the section is not accessible at run time.
.NET Framework
Available since 2.0
Available since 2.0
Show: