共用方式為


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)

適用於

另請參閱