- 1、本文档共9页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
在.NET框架下使用自定义配置设置(Use the custom configuration settings in the.NET framework)
在.NET框架下使用自定义配置设置(Use the custom configuration settings in the.NET framework)
Use the custom configuration settings in the.NET framework
Release time: 2007-04-30 08:00:00 source: Author: Click: 222
The.NET framework of the XML configuration to make configuration settings based on the familiar. It also provides the necessary means to access these settings through the collection class (Collection, classes).
You can access the actual configuration data through a static ConfigurationSettings class. The class also provides a GetConfig () method that returns an object to a suitable set. In this article, Ill demonstrate three methods that can be used to access and store configuration information.
The application configuration data is stored in the App.config file and defined by the configSections node. Each section has a type property definition. The 3 types Ill discuss here are NameValueSectionHandler, SingleTagSectionHandler, and DictionarySectionHandler. You can define a section group with a sectionGroup element. The following is an example of the configuration section definition:
section name= MyCustomSection
Type= System.Configuration.NameValueSectionHandler /
It is recommended to use type=, System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561Array34e08Array
The section group is an individual configuration section embedded with a sectionGroup element. The following is an example of a set of sections:
sectionGroup, name=, CustomGroup
section name= Custom1
Type= System.Configuration.NameValueSectionHandler /
section, name=, Custom2, type=, System.Configuration.NameValueSectionHandler /
/sectionGroup
Finally, the configuration section you specify will be used to construct custom XML nodes that store configuration data. To add data to the configuration section, simply put the configuration section as a XML node and add the Collection data with the add node. The following example is a NameValueSec
您可能关注的文档
- 口才练习素材(Eloquence exercise material).doc
- 古今图书集成(Integration of ancient books and books).doc
- 古代复姓大全(The ancient surname Daquan).doc
- 古今手表品牌之分类与等级(Classification and classification of ancient and modern watch brands).doc
- 古代年龄段称谓(Title of ancient age).doc
- 古代汉语--音韵(Ancient Chinese Phonology).doc
- 古代汉语模拟题一(Ancient Chinese simulation questions).doc
- 古代汉语答案(Ancient Chinese answer).doc
- 古代语文教育(Ancient Chinese Education).doc
- 古代诗歌鉴赏方法总结(A summary of ancient poetry appreciation methods).doc
- 2025年辽宁省护士资格考点清洁灌肠操作方法考试练习题及答案.docx
- 2025年吉林公务员(行测)模拟试题(A类)含答案.pdf
- 跨境电商办公产品仓储自动化升级对电商仓储安全风险防范报告.docx
- 跨境电商办公市场2025年仓储自动化升级市场风险预警.docx
- 2024-2025学年临床执业医师复习提分资料含答案详解(精练).docx
- 2024-2025学年临床执业医师复习提分资料带答案详解(黄金题型).docx
- 2025年乡村医生资格考试基础医学知识题库:预防医学知识重点解析试题.docx
- 跨境电商办公市场2025年供应链金融政策与市场环境研究报告.docx
- 2024-2025学年临床执业医师复习提分资料及答案详解(必刷).docx
- 2024-2025学年临床执业医师复习提分资料附参考答案详解(满分必刷).docx
最近下载
- 用人单位劳动合同模板.doc VIP
- 华熙生物-投资价值分析报告:全球最大透明质酸生产商的产业链延伸.pdf VIP
- 20200522-中信证券-华熙生物-688363-投资价值分析报告:研发驱动,服务美好生活.pdf VIP
- 医药生物行业:华熙生物,全球透明质酸领军企业.docx VIP
- 2025年校园监控系统方案(四篇).pdf VIP
- 2025广西公需科目考试答案(3套涵盖95-试题)一区两地一园一通道建设人工智能时代的机遇与挑战.docx VIP
- 华熙生物-投资价值分析报告-透明质酸,供需双振_20200413.pdf VIP
- 2025年校企合作实训项目设计与实施案例报告.docx
- 华熙生物-投资价值分析报告-全球透明质酸龙头,积极延伸医疗美妆终端.pdf VIP
- 重庆市巴蜀初一入学分班语文试卷版.doc VIP
文档评论(0)