我的应用程序名为MyApp.exe,Config文件名为MyApp.exe.config。现在在我的Config文件里有如下信息结构,我应该怎样一次性将RegistSettings里面的数据全部读取?如果要继承System.Configuration.ConfigurationSection来做应该怎样做?请各位高手指点。结构如下:
<?xml version="1.0" encoding="utf-8" ?>
<configuration> <configSections>
<section name="RegistSettings"
type="待定..." />
</configSections> <RegistSettings>
<RegistItem1 registName="RegistItem1"
registHive="Hive1"
registPath="Path1" />
<RegistItem2 registName="RegistItem2"
registHive="Hive2"
registPath="Path2" /> .... <RegistItemN registName="RegistItem2"
registHive="HiveN"
registPath="PathN" />
</RegistSettings>
</configuration>
<?xml version="1.0" encoding="utf-8" ?>
<configuration> <configSections>
<section name="RegistSettings"
type="待定..." />
</configSections> <RegistSettings>
<RegistItem1 registName="RegistItem1"
registHive="Hive1"
registPath="Path1" />
<RegistItem2 registName="RegistItem2"
registHive="Hive2"
registPath="Path2" /> .... <RegistItemN registName="RegistItem2"
registHive="HiveN"
registPath="PathN" />
</RegistSettings>
</configuration>
解决方案 »
- ScriptManager.RegisterStartupScript()问题
- “修改密码”功能
- 急需求救,C#写的程序,如何使电脑同时使用两个以上摄像头!
- 我做个视频解图的小程序确报这个错 不知道为什么啊?
- 关于文件操作的进一步问题……
- AcroPDF.dll的问题 还有没有能够显示PDF和控制PDF的控件!!
- ★☆★☆★.NET中,WinForm下,TreeView或ListView如何添加背景图?★☆★☆★
- 一个我太想知道答案的问题,困扰我很久,各位帮忙。
- 出现这个错误,弄了一天!搞不定了!来请教!
- C#socket通信
- 如果用.net多个组件实现出库单业务逻辑实战
- 怎么删除字符串中的某个字符号
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemappdomainsetupclassconfigurationfiletopic.asp
http://www.knowsky.com/336425.html