| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 578 人关注过本帖
标题:app.config问题
只看楼主 加入收藏
高小
Rank: 1
等 级:新手上路
帖 子:45
专家分:0
注 册:2010-6-30
结帖率:82.35%
收藏
 问题点数:0 回复次数:1 
app.config问题
请问我下面这个写的对吗?
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="Gamma" type="System.Configuration.SingleTagSectionHandler"/>
    <section name="ENose" type="System.Configuration.SingleTagSectionHandler"/>
    <section name="ExImage" type="System.Configuration.SingleTagSectionHandler"/>
    <section name="XRay" type="System.Configuration.SingleTagSectionHandler"/>
    <section name="Parcel" type="System.Configuration.SingleTagSectionHandler"/>
  </configSections>
  <Parcel>
    <Parcel name="ID" type="string">
      <appSettings>
        <add key="ID" value=""/>
      </appSettings>
    </Parcel>
    <Parcel name="AlarmedG" type="bool">
      <appSettings>
        <add key="AlarmedG" value="false"/>
      </appSettings>
    </Parcel>
    <Parcel name="AlarmedE" type="bool">
      <appSettings>
        <add key="AlarmedE" value="false"/>
      </appSettings>
    </Parcel>
    <Parcel name="AlarmedI" type="bool">
      <appSettings>
        <add key="AlarmedI" value="false"/>
      </appSettings>
    </Parcel>
    <Parcel name="AlarmedX" type="bool">
      <appSettings>
        <add key="AlarmedX" value="false"/>
      </appSettings>
    </Parcel>
  </Parcel>
  <Gamma>
    <Gamma name="GammaV" type="float">
      <appSettings>
        <add key="GammaV" value=""/>
      </appSettings>
    </Gamma>
    <Gamma name="AlarmGV" type="float">
      <appSettings>
        <add key="AlarmGV" value=""/>
      </appSettings>
    </Gamma>
  </Gamma>
  <ENose>
    <ENose name="ENoseV" type="float">
      <appSettings>
        <add key="ENoseV" value=""/>
      </appSettings>
    </ENose>
    <ENose name="AlarmEV" type="float">
      <appSettings>
        <add key="AlarmEV" value=""/>
      </appSettings>
    </ENose>
  </ENose>
  <ExImage>
    <ExImage name="ExImageFile" type="string">
      <appSettings>
        <add key="ExImageFile" value=""/>
      </appSettings>
    </ExImage>
  </ExImage>
  <XRay>
    <XRay name="XRayFile" type="string">
      <appSettings>
        <add key="XRayFile" value=""/>
      </appSettings>
    </XRay>
    <XRay name="XRayPush" type="int">
      <appSettings>
        <add key="XRayPush" value=""/>
      </appSettings>
    </XRay>
  </XRay>
</configuration>
搜索更多相关主题的帖子: app config 
2010-08-11 20:52
快速回复:app.config问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.034464 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved