ConfigurationSectionGroup.Sections Właściwość

Definicja

ConfigurationSectionCollection Pobiera obiekt, który zawiera wszystkie ConfigurationSection obiekty w tym ConfigurationSectionGroup obiekcie.

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

Wartość właściwości

ConfigurationSectionCollection Obiekt, który zawiera wszystkie ConfigurationSection obiekty w tym ConfigurationSectionGroup obiekcie.

Przykłady

Poniższy przykład kodu pokazuje, jak uzyskać dostęp do Sections właściwości. Jest to część większego przykładu przedstawionego w omówieniu ConfigurationSectionGroup klasy .

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

Dotyczy

Zobacz też