Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetSection Method

HttpContext.GetSection Method

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

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

public Object GetSection(
	string sectionName
)

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft