zoukankan      html  css  js  c++  java
  • configSections 的 section 元素

    type

    --------------
    必选的 String 属性。

    指定用来执行如下操作的配置节处理程序类的名称:处理在 name 属性中指定的节或元素中的配置设置。使用以下格式:

    type="完全限定类名, 程序集文件名, 版本, 区域性, 公钥标记"

    定义必须匹配程序集引用。例如,如果下面的示例语法中的版本号与程序集不匹配,则会发生错误。

    复制代码
    type="MyConfigSectionHandler.MyHandler,MyCustomConfigurationHandler,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null"

    程序集文件必须与定义它的 Web.config 文件位于同一个应用程序目录中。对于根 Web.config 文件或 Machine.config 文件,程序集文件必须位于 %SystemRoot%\Microsoft.NET\Framework\版本目录中。

    ----------------------------
    示例

    <configuration>
    
       <configSections>
          <section name="sampleSection"
                   type="System.Configuration.SingleTagSectionHandler" />
       </configSections>
    
       <sampleSection setting1="Value1" 
                      setting2="value two" 
                      setting3="third value" />
    
    </configuration>
  • 相关阅读:
    Linux 性能优化--理解 CPU 使用率和平均负载
    sqlalchemy ORM
    redis缓存数据库
    基于CentOS安装FTP服务器
    python3之platform模块
    paramiko模块
    shelve模块
    Vue入门---属性、style和class绑定方法
    Vue入门---事件与方法详解
    Vue入门---常用指令详解
  • 原文地址:https://www.cnblogs.com/jes_shaw/p/1526747.html
Copyright © 2011-2022 走看看