ConfigurationSectionGroup.Sections Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
Show: