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. ThinkPHP3.1在多数据库连接下存储过程调用bug修正

    最近使用ThinkPHP3.1进行一个项目的开发,由于该项目需要连接多台不同的数据库,所以使用如下配置方法: <?php return array( //'配置项'=>'配置值' //数据 ...

  2. eclipse没有(添加)"Dynamic Web Project"选项的方法

    建议使用代理lantern,否则可能要花很长时间显示和下载插件 http://www.dabu.info/eclipse-no-add-dynamic-web-project-option.html ...

  3. Android异步处理二:使用AsyncTask异步更新UI界面

    在<Android异步处理一:使用Thread+Handler实现非UI线程更新UI界面>中,我们使用Thread+Handler的方式实现了异步更新UI界面,这一篇中,我们介绍一种更为简 ...

  4. Android UI开发第四十三篇——使用Property Animation实现墨迹天气3.0引导界面及动画实现

    前面写过<墨迹天气3.0引导界面及动画实现>,里面完美实现了动画效果,那一篇文章使用的View Animation,这一篇文章使用的Property Animation实现.Propert ...

  5. python 基础 5.2 类的继承

    一. 类的继承 继承,顾名思议就知道是它的意思,举个例子说明,你现在有一个现有的A类,现在需要写一个B类,但是B类是A类的特殊版,我们就可以使用继承,B类继承A类时,B类会自动获得A类的所有属性和方法 ...

  6. python 基础 2.4 while 循环

    #/usr/bin/python #coding=utf-8 #@Time :2017/10/18 15:31 #@Auther :liuzhenchuan #@File :while 循环.py 示 ...

  7. rtmp直播拉流客户端EasyRTMPClient设计过程中时间戳问题汇总

    EasyRTMPClient 简介 EasyRTMPClient是EasyDarwin流媒体团队开发.提供的一套非常稳定.易用.支持重连接的RTMPClient工具,以SDK形式提供,接口调用非常简单 ...

  8. android菜鸟学习笔记1----环境搭建

    Step1 JDK安装及配置: 1.下载并安装JDK: 根据自己系统情况,选择安装相应的JDK版本 当前系统:64位WIN8,内存8G 选择了Java SE 8u45 即JDK 1.8.0_45,可以 ...

  9. python网络爬虫之requests库 二

    前面一篇在介绍request登录CSDN网站的时候,是采用的固定cookie的方式,也就是先通过抓包的方式得到cookie值,然后将cookie值加在发送的数据包中发送到服务器进行认证. 就好比获取如 ...

  10. 【总结】性能调优:JVM内存调优相关文章

    [总结]性能调优:JVM内存诊断工具 [总结]性能调优:CPU消耗分析 [总结]性能调优:消耗分析 JVM性能调优