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. MySQL5.7.18 备份、Mysqldump,mysqlpump,xtrabackup,innobackupex 全量,增量备份,数据导入导出

    粗略介绍冷备,热备,温暖,及Mysqldump,mysqlpump,xtrabackup,innobackupex 全量,增量备份 --备份的目的 灾难恢复:意外情况下(如服务器宕机.磁盘损坏等)对损 ...

  2. linux下安装rabbitmq的rpm包问题记录

    安装rabbitmq的文章和帖子多如牛毛,不管是官网还是各个博客,这里附个Rabbitmq官网安装Rpm包的链接, http://www.rabbitmq.com/install-rpm.html 不 ...

  3. ios美颜 调研 GPUImage GPUImageBeautifyFilter BeautifyFaceDemo

    最近需要给直播项目中添加美颜的功能,调研了很多SDK和开源代码(视决,涂图,七牛,金山云,videoCore等),综合成本/效果/对项目侵入性,最后决定使用一款基于GPUImage实现的 Beauti ...

  4. 大数据:Hive常用参数调优

    1.limit限制调整 一般情况下,Limit语句还是需要执行整个查询语句,然后再返回部分结果. 有一个配置属性可以开启,避免这种情况---对数据源进行抽样 hive.limit.optimize.e ...

  5. Swift 学习笔记 (解决Swift闭包中循环引用的三种方法)

    话不多说 直接上代码 class SmartAirConditioner { var temperature:Int = //类引用了函数 var temperatureChange:((Int)-& ...

  6. Tomcat学习笔记【4】--- Server.xml配置文件详解

    本文主要讲如何配置Tomcat服务器. 首先展示一个BS结构图: 1 server 一个server就表示一个Tomcat实例. 1)port 指定一个端口,这个端口负责监听关闭tomcat的请求: ...

  7. Hadoop实战-Flume之Source multiplexing(十五)

    a1.sources = r1 a1.sinks = k1 k2 a1.channels = c1 c2 # Describe/configure the source a1.sources.r1.t ...

  8. Unix和Linux历史文化

    1.显示工作目录pwd   print working directory     print name of current/working directory 2.显示自己终端名称tty   pr ...

  9. Django--组件-用户认证Auth(auth_user增加字段)

    引入 :  from django.db import models from django.contrib.auth.models import AbstractBaseUser 源码 :  fro ...

  10. vector缩减容量

    在C++标准库容器vector的容量是不会自动的缩减的,也就是说删除元素操作,其引用.指针.迭代器也会继续有效.那么当在一个较大的vector中删除了大量的元素之后,其实际的size比较小,而其cap ...