.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 ...
随机推荐
- 本地filezilla&servervsftp搭配使用
环境:本地ubuntu系统&serverubuntu系统 本地安装filezilla apt-get install filezilla '安装filezilla filezilla '执行 ...
- iOS block-base 动画简单用法+关键帧动画设置线性变化速度的问题
本文转载至 http://www.tuicool.com/articles/aANBF3m 时间 2014-12-07 20:13:37 segmentfault-博客原文 http://segm ...
- Mybatis之Mapper动态代理
一.什么是Mapper的动态代理 采用Mapper动态代理方法只需要编写相应的Mapper接口(相当于Dao接口),那么Mybatis框架根据接口定义创建接口的动态代理对象,代理对象的方法体同Dao接 ...
- Bootstrap aggregating Bagging 合奏 Ensemble Neural Network
zh.wikipedia.org/wiki/Bagging算法 Bagging算法 (英语:Bootstrap aggregating,引导聚集算法),又称装袋算法,是机器学习领域的一种团体学习算法. ...
- 性能测试--Jmeter的Non GUI模式、集群
Jmeter的Non GUI模式.集群 一.Non GUI模式 1.一般情况下在NonGUI模式下运行jmeter,有两个好处: 节省系统资源,能够产生更大的负载 可以通过命令行参数对测试场景进行更精 ...
- 我的Java开发学习之旅------>Java经典排序算法之希尔排序
一.希尔排序(Shell Sort) 希尔排序(Shell Sort)是一种插入排序算法,因D.L.Shell于1959年提出而得名. Shell排序又称作缩小增量排序. 二.希尔排序的基本思想 希尔 ...
- 您使用的是不受支持的命令行标记 chrome
检查 chrome://flags/#extensions-on-chrome-urls 是否开启 开启了的话就关掉检查 启动chrome的快捷方式是否在目标后有额外的参数 有就删了 在浏览器中输入c ...
- php+mysql 安全
Php注入攻击是现今最流行的攻击方式,依靠它强大的灵活性吸引了广大黑迷. 在上一期的<php安全与注射专题>中林.linx主要讲述了php程序的各种漏洞,也讲到了php+mysql注入的问 ...
- VMware和Centos系统安装
1.Linux发行版的选择 2.vmware创建一个虚拟机(centos) 3.安装配置centos7 4.xshell配置连接虚拟机(centos) 选择性 pc可以选择 -纯系统 Linux/wi ...
- Algorithm: pattern searching
kmp算法:用一个数组保存了上一个需要开始搜索的index,比如AAACAAA就是0, 1, 2, 0, 1, 2, 3, ABCABC就是0, 0, 0, 1, 2, 3,复杂度O(M+N) #in ...
