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>
  • 相关阅读:
    文档API
    vi编辑器常用方法
    storm实战入门一
    redis教程
    为redis分配一个新的端口
    Lucene分页查询
    Lucene搜索方式大合集
    HBase Scan类用法
    java.util.Queue用法
    Makefile中预定义变量
  • 原文地址:https://www.cnblogs.com/jes_shaw/p/1526747.html
Copyright © 2011-2022 走看看