Export (0) Print
Expand All

ContextInformation.GetSection Method

Provides an object containing configuration-section information based on the specified section name.

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

public Object GetSection(
	string sectionName


Type: System.String

The name of the configuration section.

Return Value

Type: System.Object
An object containing the specified section within the configuration.

When specifying a section within the configuration, note that the name of the configuration section is case-sensitive.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft