标题:app.config问题
取消只看楼主
高小
Rank: 1
等 级:新手上路
帖 子:45
专家分:0
注 册:2010-6-30
结帖率:82.35%
 问题点数:0 回复次数:0 
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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-315451-1-1.html




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

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