ConfigurationSectionGroup.Sections プロパティ
メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。
この ConfigurationSectionGroup 内のすべての ConfigurationSection オブジェクトを格納している ConfigurationSectionCollection を取得します。
名前空間: System.Configuration
アセンブリ: System.Configuration (system.configuration.dll 内)
構文
Dim instance As ConfigurationSectionGroup Dim value As ConfigurationSectionCollection value = instance.Sections
public: property ConfigurationSectionCollection^ Sections { ConfigurationSectionCollection^ get (); }
プロパティ値
この ConfigurationSectionGroup 内のすべての ConfigurationSection オブジェクトを格納している ConfigurationSectionCollection。

Sections プロパティへのアクセス方法を次のコード例に示します。
Dim sectionCollection _ As ConfigurationSectionCollection = _ sectionGroup.Sections Dim sectionName As String For Each sectionName In sectionCollection.Keys Dim section As ConfigurationSection = _ CType(sectionCollection( _ sectionName), ConfigurationSection) Console.WriteLine((getSpacer() + _ "Section Name:" + _ section.SectionInformation.Name)) Next sectionName
ConfigurationSectionCollection sectionCollection = sectionGroup.Sections; foreach (String sectionName in sectionCollection.Keys) { ConfigurationSection section = (ConfigurationSection)sectionCollection[sectionName]; Console.WriteLine(getSpacer() + "Section Name:" + section.SectionInformation.Name); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ConfigurationSectionGroup.Sections プロパティのページへのリンク