ConfigurationSectionGroup.Sections Propriedade

Definição

Obtém um ConfigurationSectionCollection objeto que contém todos os ConfigurationSection objetos dentro desse ConfigurationSectionGroup objeto.

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

Valor de Propriedade

Um ConfigurationSectionCollection objeto que contém todos os ConfigurationSection objetos dentro desse ConfigurationSectionGroup objeto.

Exemplos

O seguinte exemplo de código mostra como aceder à Sections propriedade. Isto faz parte de um exemplo mais amplo apresentado na visão geral da ConfigurationSectionGroup aula.

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

Aplica-se a

Ver também