.NETFramework:ConfigurationManager
| ylbtech-.NETFramework:ConfigurationManager |
| 1.程序集 System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a返回顶部 |
#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.返回顶部 |
| 3.返回顶部 |
| 4.返回顶部 |
| 5.返回顶部 |
| 6.返回顶部 |
![]() |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
.NETFramework:ConfigurationManager的更多相关文章
- .NETFramework:DateTimeOffset
ylbtech-.NETFramework:DateTimeOffset 表示一个时间点,通常相对于协调世界时(UTC)的日期和时间来表示. 1.程序集 mscorlib, Version=4.0.0 ...
- .NETFramework:Random
ylbtech-.NETFramework:Random 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c ...
- .NETFramework:StringBuilder
ylbtech-.NETFramework:StringBuilder 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken ...
- .NETFramework:WebClient
ylbtech-.NETFramework:WebClient 1.程序集 System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5 ...
- .NETFramework:Timers
ylbtech-.NETFramework:Timers 1.返回顶部 1. #region 程序集 System, Version=4.0.0.0, Culture=neutral, PublicK ...
- .NETFramework:Stream
ylbtech-.NETFramework:Stream 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, Publi ...
- .NETFramework:HttpContext
ylbtech-.NETFramework:HttpContext 1.返回顶部 1. #region 程序集 System.Web, Version=4.0.0.0, Culture=neutral ...
- .NETFramework:Encoding
ylbtech-.NETFramework:Encoding 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, Pub ...
- .NETFramework:HttpRuntime
ylbtech-.NETFramework:HttpRuntime 1.返回顶部 1. #region 程序集 System.Web, Version=4.0.0.0, Culture=neutral ...
随机推荐
- zabbix 3.2.4 安装
一.安装mysql . 安装必备组件 yum install –y autoconf automake imake libxml2-devel expat-devel cmake gcc gcc-c+ ...
- 首选项框架PreferenceFragment部分源代码分析
由于要改一些settings里面的bug以及之前在里面有做过勿扰模式,准备对勿扰模式做一个总结,那先分析一下settings的源代码,里面的核心应该就是android3.0 上面的首选项框架Prefe ...
- memcached 搭建
linux 下memcached 的搭建 memcached 下载地址:http://www.danga.com/memcached/dist/ libevent 下载地址:http://libev ...
- mvn deploy
mvn:deploy在整合或者发布环境下执行,将最终版本的包拷贝到远程的repository,使得其他的开发者或者工程可以共享. 以将ojdbc14传到nexus中的thirdparty为例 一 配置 ...
- consistence availability partition tolerance quit
理论证明
- VC调用Delphi DLL
别的没什么,是一定可以调用成功的.但是意外的是,ShowMessage函数在DLL里也可以轻易被调用.此外,Delphi里的var 相当于VC里的引用,需要在函数原型里正确标识,否则传递普通变量甚至常 ...
- linux c编程:网络编程
在网络上,通信服务都是采用C/S机制,也就是客户端/服务器机制.流程可以参考下图: 服务器端工作流程: 使用socket()函数创建服务器端通信套接口 使用bind()函数将创建的套接口与服务器地址绑 ...
- SAP流水号
[转]编号范围对象维护 Tcode: SNRO OYSM 1.Number Range的通用Tcode:SNRO 2.Number Range的通用读取函数:NUMBER_GET_NEXT 3 ...
- Servlet详解(转)
我们通过浏览器访问一个网页的过程,实际上是浏览器(例如IE)通过HTTP协议(参见附录B)和Web服务器(也叫做HTTP服务器)进行交互的过程. 也就是说,用户要访问网络资源,首先需要在网络上架设We ...
- ZOJ - 3865 Superbot 【BFS】
题目链接 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3865 思路 一个迷宫题 但是每次的操作数和普通的迷宫题不一样 0 ...
