ConfigurationSectionGroup.Sections Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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 ReadOnly Property Sections As ConfigurationSectionCollection

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.

Dim section As ConfigurationSection
For Each section In sectionGroup.Sections
    indent("Section Name:" + section.SectionInformation.Name)
Next section

.NET Framework
Available since 2.0
Return to top