ConfigurationSectionGroup.SectionGroups 属性

定义

获取一个 ConfigurationSectionGroupCollection 对象,其中包含作为此 ConfigurationSectionGroup 对象的子对象的所有 ConfigurationSectionGroup 对象。

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

属性值

一个 ConfigurationSectionGroupCollection 对象,其中包含作为此 ConfigurationSectionGroup 对象的子对象的所有 ConfigurationSectionGroup 对象。

示例

下面的代码示例演示如何访问 SectionGroups 属性。 这是 类概述中提供的更大示例的 ConfigurationSectionGroup 一部分。

ConfigurationSectionGroupCollection sectionGroups =
    sectionGroup.SectionGroups;
ShowSectionGroupCollectionInfo(sectionGroups);
Dim sectionGroups As ConfigurationSectionGroupCollection = _
    sectionGroup.SectionGroups
ShowSectionGroupCollectionInfo(sectionGroups)

适用于

另请参阅