zoukankan      html  css  js  c++  java
  • Configuration.SectionGroups

    对于一个空的配置文件,默认自带的sectiongroups

    默认有10个section节点

    1 ConfigurationSectionGroupName=system.runtime.serialization
    ConfigurationSectionGroupNameType=System.Runtime.Serialization.Configuration.SerializationSectionGroup

    2 ConfigurationSectionGroupName=system.web.extensions
    ConfigurationSectionGroupNameType=System.Web.Configuration.SystemWebExtensionsSectionGroup

    3 ConfigurationSectionGroupName=system.web
    ConfigurationSectionGroupNameType=System.Web.Configuration.SystemWebSectionGroup

    4 ConfigurationSectionGroupName=system.transactions
    ConfigurationSectionGroupNameType=System.Transactions.Configuration.TransactionsSectionGroup

    5 ConfigurationSectionGroupName=system.net
    ConfigurationSectionGroupNameType=System.Net.Configuration.NetSectionGroup

    6 ConfigurationSectionGroupName=system.xaml.hosting
    ConfigurationSectionGroupNameType=System.Xaml.Hosting.Configuration.XamlHostingSectionGroup

    7 ConfigurationSectionGroupName=system.xml.serialization
    ConfigurationSectionGroupNameType=System.Xml.Serialization.Configuration.SerializationSectionGroup

    8 ConfigurationSectionGroupName=system.serviceModel.activation
    ConfigurationSectionGroupNameType=System.ServiceModel.Activation.Configuration.ServiceModelActivationSectionGroup

    9 ConfigurationSectionGroupName=system.runtime.caching
    ConfigurationSectionGroupNameType=System.Runtime.Caching.Configuration.CachingSectionGroup

    10 ConfigurationSectionGroupName=system.serviceModel
    ConfigurationSectionGroupNameType=System.ServiceModel.Configuration.ServiceModelSectionGroup

                var sectionGroups = _configuration.SectionGroups;
                Console.WriteLine();
                int i = 0;
                foreach (ConfigurationSectionGroup item in sectionGroups)
                {
                    i++;
                    Console.WriteLine($"{i} ConfigurationSectionGroupName={item.Name}{Environment.NewLine}ConfigurationSectionGroupNameType={item}");
                    Console.WriteLine();
                }
  • 相关阅读:
    关于MOTO E2
    Visual Studio 2008 SDK 1.1 Beta 发布
    开始了新的工作
    C# 2.0 的"语法多义性"
    最近画的框架草图
    SQL数据库向ORACLE迁移注意事项
    C#中很多新的特性,提供了更好的“即兴编程”的能力。
    看了点lua相关的东西,有点想法不知能否实现?先记下来慢慢思考。
    读《企业应用架框模式》
    porting cinvoke1.0 to E2 (armlinux)
  • 原文地址:https://www.cnblogs.com/chucklu/p/8890987.html
Copyright © 2011-2022 走看看