ConfigurationSectionGroup.Sections Özellik

Tanım

Bu ConfigurationSectionGroup nesne içindeki tüm ConfigurationSection nesneleri içeren bir ConfigurationSectionCollection nesnesi alır.

public:
 property System::Configuration::ConfigurationSectionCollection ^ Sections { System::Configuration::ConfigurationSectionCollection ^ get(); };
public System.Configuration.ConfigurationSectionCollection Sections { get; }
member this.Sections : System.Configuration.ConfigurationSectionCollection
Public ReadOnly Property Sections As ConfigurationSectionCollection

Özellik Değeri

ConfigurationSectionCollection Bu ConfigurationSectionGroup nesne içindeki ConfigurationSection tüm nesneleri içeren bir nesne.

Örnekler

Aşağıdaki kod örneği özelliğine nasıl erişeceklerini Sections gösterir. Bu, sınıfına genel bakış ConfigurationSectionGroup bölümünde sağlanan daha büyük bir örneğin parçasıdır.

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

Şunlara uygulanır

Ayrıca bkz.