Configuration.SectionGroups プロパティ

定義

この構成で定義されているセクション グループのコレクションを取得します。

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 オブジェクトのセクション グループのコレクションを表す Configuration コレクション。

次のコード例では、 プロパティの使用方法 SectionGroups を示します。

ConfigurationSectionGroupCollection
    groups = config.SectionGroups;
Console.WriteLine("Groups: {0}", groups.Count.ToString());
foreach (ConfigurationSectionGroup group in groups)
{
    Console.WriteLine("Group Name: {0}", group.Name);
   // Console.WriteLine("Group Type: {0}", group.Type);
}
Dim groups As ConfigurationSectionGroupCollection = config.SectionGroups
Console.WriteLine("Groups: {0}", groups.Count.ToString())
For Each group As ConfigurationSectionGroup In groups
    Console.WriteLine("Group Name: {0}", group.Name)
    ' Console.WriteLine("Group Type: {0}", group.Type);
Next group

注釈

構成セクションは、便宜上、機能を追加するためにグループに組み合わせることができます。 プロパティにSectionGroupsアクセスして、このConfigurationオブジェクトのConfigurationSectionGroupCollectionセクション グループのコレクションを表す オブジェクトを取得します。 このオブジェクトが Configuration 継承されたビューを表す場合は、セクション グループのマージされたリストが返されます。

適用対象