Export (0) Print
Expand All

ConfigurationSectionGroup.Sections Property

Note: This property is new in the .NET Framework version 2.0.

Gets a ConfigurationSectionCollection containing all of the ConfigurationSection objects within this ConfigurationSectionGroup.

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

public ConfigurationSectionCollection Sections { get; 
/** @property */
public ConfigurationSectionCollection get_Sections ()

public function get Sections () : ConfigurationSectionCollection

Property Value

A ConfigurationSectionCollection containing all of the ConfigurationSection objects within this ConfigurationSectionGroup.

The following code example shows how to access the Sections property.

ConfigurationSectionCollection sectionCollection = 
    sectionGroup.Sections;
foreach (String sectionName in sectionCollection.Keys)
{
    ConfigurationSection section = 
        (ConfigurationSection)sectionCollection[sectionName];
    Console.WriteLine(getSpacer() + "Section Name:" 
        + section.SectionInformation.Name);


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft