ConfigurationSectionGroup.Sections Propriedade

Definição

Obtém um objeto ConfigurationSectionCollection que contém todos os objetos ConfigurationSection dentro desse objeto ConfigurationSectionGroup.Gets a ConfigurationSectionCollection object that contains all of ConfigurationSection objects within this ConfigurationSectionGroup object.

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 da propriedade

ConfigurationSectionCollection

Um objeto ConfigurationSectionCollection que contém todos os objetos ConfigurationSection dentro desse objeto ConfigurationSectionGroup.A ConfigurationSectionCollection object that contains all the ConfigurationSection objects within this ConfigurationSectionGroup object.

Exemplos

O exemplo de código a seguir mostra como acessar a Sections propriedade.The following code example shows how to access the Sections property. Isso faz parte de um exemplo maior fornecido na visão geral da ConfigurationSectionGroup classe.This is part of a larger example provided in the overview for the ConfigurationSectionGroup class.

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

Confira também