HttpContext.GetSection Method (String)

 

Gets a specified configuration section for the current application's default configuration.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

Public Function GetSection (
	sectionName As String
) As Object

Parameters

sectionName
Type: System.String

The configuration section path (in XPath format) and the configuration element name.

Return Value

Type: System.Object

The 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
Return to top
Show: