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. 【SQLServer2008】之改变主键当为null时也不会报错,可以入数据库。

    在SqlServer红框中设置主键,右键会有添加主键选项,并且设置不能为null. 当我们插入主键数据如果为null时,会插不进去,这时候我们需要修改一下,如下图: “标识规范”中选择“是”,就可以了 ...

  2. java 常用设计模式(转载)

    http://www.cnblogs.com/hnrainll/archive/2011/12/29/2305582.html 设计模式:一个程序员对设计模式的理解:“不懂”为什么要把很简单的东西搞得 ...

  3. lnmp建站常识

    1.nginx配置网站目录并修改访问的端口:nginx.conf文件 listen 666;//端口默认为80,修改后增强安全性 server_name www.lnmp.org; index ind ...

  4. iOS对象(字典或数组)转化为JSon字符串

    NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; [dictionary setValue:@"he ...

  5. Unix环境高级编程第三版中实例代码如何在自己的linux上运行的问题

    学习Linux已经有2个月了,最近被期末考试把进度耽误了,前几天把Unix环境高级编程看了两章,感觉对Linux的整体有了一些思路,今天尝试着对第一章涉及到的一个简单的交互式shell编译运行一下,结 ...

  6. EasyNVR实现海康、大华NVR硬盘录像机Web无插件播放方案(支持取特定时间段视频流)

    本文转自:https://blog.csdn.net/black_3717/article/details/79872725 背景说明: 由于视频自身的直观性和便利性,对于传统安防行业,摄像机的直播和 ...

  7. python知识点导图(搜集)

    第一章 基本环境 第二章 内置类型 第三章 表达式 第四章 函数 第五章 迭代器 第六章 模块 第七章 类 第八章 异常 第九章 装饰器 第十章 描述符 第十一章 元类 第十二章 标准库 Re模块 附 ...

  8. 【题解】Fence(单调队列)

    [题解]Fence(单调队列) POJ - 1821 题目大意 有\(k\)个粉刷匠,每个粉刷匠一定要粉刷某个位置\(S_i\),一个粉刷匠可以粉刷至多\(l_i\)个位置(必须连续\(l_i\)互不 ...

  9. 我的Java开发学习之旅------>Java经典排序算法之希尔排序

    一.希尔排序(Shell Sort) 希尔排序(Shell Sort)是一种插入排序算法,因D.L.Shell于1959年提出而得名. Shell排序又称作缩小增量排序. 二.希尔排序的基本思想 希尔 ...

  10. linux c编程:gdb的使用

    首先用一个简单的打印字符的程序来做下示例 #include<stdio.h>#include<string.h>void main(){    int i=0;    char ...