配置文件 [英] Config Files

查看:107
本文介绍了配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个.dll,它具有一个.config文件.调用此.dll的应用程序还将具有.config文件.如果在我的.dll中,我有如下代码:
string con = ConfigurationManager.ConnectionStrings ["DB"].ConnectionString;

.dll是否先在自己的.config中查找,然后在应用程序的.config还是决定其他方式?

I have created a .dll and it has a .config file. The application which will call this .dll also will have a .config file. If within my .dll I have code such as:
string con = ConfigurationManager.ConnectionStrings["DB"].ConnectionString;

Does the .dll look in its own .config first and then looks in the app''s .config or does it decide some other way?

推荐答案

它看起来是应用程序配置文件.

It looks the applications config file.


这篇关于配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆