Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
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
Available since 2.0
Return to top
Show:
© 2017 Microsoft