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();
                }
  • 相关阅读:
    Visual Studio Code 配置C/C++环境
    二叉链的基本操作
    回文自动机
    吊打线段树的超级树状数组
    Treap平衡树
    uni-app nvue页面动态修改导航栏按钮
    uni-app map组件关于marker标记点动态设置的问题
    uni-app 提示 v-for 暂不支持循环数据
    uni-app APP端隐藏导航栏自定义按钮
    uni-app路径规划(打开第三方地图实现)
  • 原文地址:https://www.cnblogs.com/chucklu/p/8890987.html
Copyright © 2011-2022 走看看