ConfigurationSectionGroup.Sections Property


Gets a ConfigurationSectionCollection object that contains all of ConfigurationSection objects within this ConfigurationSectionGroup object.

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

public ConfigurationSectionCollection Sections { get; }

The following code example shows how to access the Sections property. This is part of a larger example provided in the overview for the ConfigurationSectionGroup class.

foreach (ConfigurationSection section 
    in sectionGroup.Sections)
    indent("Section Name:" + section.SectionInformation.Name);

.NET Framework
Available since 2.0
Return to top