ylbtech-.NETFramework:ConfigurationManager
1.程序集 System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a返回顶部
1、
#region 程序集 System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Configuration.dll
#endregion

using System.Collections.Specialized;

namespace System.Configuration
{
    //
    // 摘要:
    //     提供对客户端应用程序配置文件的访问。无法继承此类。
    public static class ConfigurationManager
    {
        //
        // 摘要:
        //     获取当前应用程序默认配置的 System.Configuration.AppSettingsSection 数据。
        //
        // 返回结果:
        //     返回一个 System.Collections.Specialized.NameValueCollection 对象,该对象包含当前应用程序默认配置的 System.Configuration.AppSettingsSection
        //     对象的内容。
        //
        // 异常:
        //   T:System.Configuration.ConfigurationErrorsException:
        //     未能使用应用程序设置数据检索 System.Collections.Specialized.NameValueCollection 对象。
        public static NameValueCollection AppSettings { get; }
        //
        // 摘要:
        //     获取当前应用程序默认配置的 System.Configuration.ConnectionStringsSection 数据。
        //
        // 返回结果:
        //     返回一个 System.Configuration.ConnectionStringSettingsCollection 对象,该对象包含当前应用程序默认配置的
        //     System.Configuration.ConnectionStringsSection 对象的内容。
        //
        // 异常:
        //   T:System.Configuration.ConfigurationErrorsException:
        //     未能检索 System.Configuration.ConnectionStringSettingsCollection 对象。
        public static ConnectionStringSettingsCollection ConnectionStrings { get; }

        //
        // 摘要:
        //     检索当前应用程序默认配置的指定配置节。
        //
        // 参数:
        //   sectionName:
        //     配置节的路径和名称。
        //
        // 返回结果:
        //     指定的 System.Configuration.ConfigurationSection 对象,或者,如果该节不存在,则为 null。
        //
        // 异常:
        //   T:System.Configuration.ConfigurationErrorsException:
        //     未能加载配置文件。
        public static object GetSection(string sectionName);
        //
        // 摘要:
        //     将当前应用程序的配置文件作为 System.Configuration.Configuration 对象打开。
        //
        // 参数:
        //   userLevel:
        //     要打开配置的 System.Configuration.ConfigurationUserLevel。
        //
        // 返回结果:
        //     一个 System.Configuration.Configuration 对象。
        //
        // 异常:
        //   T:System.Configuration.ConfigurationErrorsException:
        //     未能加载配置文件。
        public static Configuration OpenExeConfiguration(ConfigurationUserLevel userLevel);
        //
        // 摘要:
        //     将指定的客户端配置文件作为 System.Configuration.Configuration 对象打开。
        //
        // 参数:
        //   exePath:
        //     配置文件的路径。配置文件与可执行文件位于同一目录中。
        //
        // 返回结果:
        //     一个 System.Configuration.Configuration 对象。
        //
        // 异常:
        //   T:System.Configuration.ConfigurationErrorsException:
        //     未能加载配置文件。
        public static Configuration OpenExeConfiguration(string exePath);
        //
        // 摘要:
        //     将当前计算机上的计算机配置文件作为 System.Configuration.Configuration 对象打开。
        //
        // 返回结果:
        //     一个 System.Configuration.Configuration 对象。
        //
        // 异常:
        //   T:System.Configuration.ConfigurationErrorsException:
        //     未能加载配置文件。
        public static Configuration OpenMachineConfiguration();
        //
        // 摘要:
        //     可将指定的客户端配置文件作为使用指定文件映射和用户级别的 System.Configuration.Configuration 对象打开。
        //
        // 参数:
        //   fileMap:
        //     一个 System.Configuration.ExeConfigurationFileMap 对象,该对象引用代替应用程序的默认配置文件使用的配置文件。
        //
        //   userLevel:
        //     要打开配置的 System.Configuration.ConfigurationUserLevel 对象。
        //
        // 返回结果:
        //     一个 System.Configuration.Configuration 对象。
        //
        // 异常:
        //   T:System.Configuration.ConfigurationErrorsException:
        //     未能加载配置文件。
        public static Configuration OpenMappedExeConfiguration(ExeConfigurationFileMap fileMap, ConfigurationUserLevel userLevel);
        //
        // 摘要:
        //     将计算机配置文件作为使用指定文件映射的 System.Configuration.Configuration 对象打开。
        //
        // 参数:
        //   fileMap:
        //     一个 System.Configuration.ExeConfigurationFileMap 对象,该对象引用代替应用程序的默认配置文件使用的配置文件。
        //
        // 返回结果:
        //     一个 System.Configuration.Configuration 对象。
        //
        // 异常:
        //   T:System.Configuration.ConfigurationErrorsException:
        //     未能加载配置文件。
        public static Configuration OpenMappedMachineConfiguration(ConfigurationFileMap fileMap);
        //
        // 摘要:
        //     刷新命名节,这样在下次检索它时将从磁盘重新读取它。
        //
        // 参数:
        //   sectionName:
        //     要刷新的节的配置节名称或配置路径和节名称。
        public static void RefreshSection(string sectionName);
    }
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

.NETFramework:ConfigurationManager的更多相关文章

  1. .NETFramework:DateTimeOffset

    ylbtech-.NETFramework:DateTimeOffset 表示一个时间点,通常相对于协调世界时(UTC)的日期和时间来表示. 1.程序集 mscorlib, Version=4.0.0 ...

  2. .NETFramework:Random

    ylbtech-.NETFramework:Random 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c ...

  3. .NETFramework:StringBuilder

    ylbtech-.NETFramework:StringBuilder 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken ...

  4. .NETFramework:WebClient

    ylbtech-.NETFramework:WebClient 1.程序集 System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5 ...

  5. .NETFramework:Timers

    ylbtech-.NETFramework:Timers 1.返回顶部 1. #region 程序集 System, Version=4.0.0.0, Culture=neutral, PublicK ...

  6. .NETFramework:Stream

    ylbtech-.NETFramework:Stream 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, Publi ...

  7. .NETFramework:HttpContext

    ylbtech-.NETFramework:HttpContext 1.返回顶部 1. #region 程序集 System.Web, Version=4.0.0.0, Culture=neutral ...

  8. .NETFramework:Encoding

    ylbtech-.NETFramework:Encoding 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, Pub ...

  9. .NETFramework:HttpRuntime

    ylbtech-.NETFramework:HttpRuntime 1.返回顶部 1. #region 程序集 System.Web, Version=4.0.0.0, Culture=neutral ...

随机推荐

  1. bash学习记录

    bash: 管理员:  提示符# 普通用户:提示符$ 环境变量 A=3(变量是指内存空间,A指的是内存空间的名称-变量标示符) PS1  \u@\h:\w\$  \u用户名 \h主机名 \w工作目录的 ...

  2. Android 关于软键盘

    一..弹出的时候显示Editext框 添加布局replay_input <?xml version="1.0" encoding="utf-8"?> ...

  3. iOS 使用 Core Plot 绘制统计图表入门

     本文转载至 http://blog.csdn.net/zhibudefeng/article/details/7677457   iOS(iPhone/iPad) 下图形组件有两个有名的,s7gra ...

  4. 【BZOJ2989】数列 kd-tree

    [BZOJ2989]数列 Description 给定一个长度为n的正整数数列a[i]. 定义2个位置的graze值为两者位置差与数值差的和,即graze(x,y)=|x-y|+|a[x]-a[y]| ...

  5. Python --- Scrapy 命令(转)

    Scrapy 命令 分为两种: 全局命令 和 项目命令 . 全局命令:在哪里都能使用. 项目命令:必须在爬虫项目里面才能使用. 全局命令 C:\Users\AOBO>scrapy -h Scra ...

  6. 九度OJ 1029:魔咒词典 (排序)

    时间限制:5 秒 内存限制:32 兆 特殊判题:否 提交:4574 解决:1318 题目描述:     哈利波特在魔法学校的必修课之一就是学习魔咒.据说魔法世界有100000种不同的魔咒,哈利很难全部 ...

  7. vs2013 solution文件解析

    1 定义一个project Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "render", &quo ...

  8. mysql系列之9.mysql日志&存储引擎

    mysqlbinlog 是什么? 数据目录下的如下文件: mysql-bin.xxxxxx 作用? 记录数据库内部增删改查对mysql数据库有更新的内容的记录 三种模式? statement leve ...

  9. python网络爬虫之如何识别验证码

    有些网站的登录方式是验证码登录的方式,比如今天我们要测试的网站专利检索及分析. http://www.pss-system.gov.cn/sipopublicsearch/portal/uilogin ...

  10. python 创建一个实例:步骤一 编写一个构造函数

    编写一个构造函数 #在python中,person 类的第一件是就是记录关于人员的基本信息,这叫做实例对象属性,并且它们通常通过给类方法函数中的self 属性赋值来创建. #赋给实力属性第一个值得通常 ...