Configuration::Sections Property

 

Gets a collection of the sections defined by this Configuration object.

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

public:
property ConfigurationSectionCollection^ Sections {
	ConfigurationSectionCollection^ get();
}

Property Value

Type: System.Configuration::ConfigurationSectionCollection^

A collection of the sections defined by this Configuration object.

Access the Sections property to retrieve a ConfigurationSectionCollection object representing the collection of sections for this Configuration object. If this Configuration object represents a merged configuration, the merged list of sections will be returned.

The following example shows how to retrieve the Sections property value and to display the number of the sections in the collection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: