从 web.config 的 appsettings 中读取文件属性
Read file attribute from appsettings from web.config
在我的 web.config 我有以下内容
<appSettings file="C:\Config\myproj\Appsettings.Config">
文件属性不属于 NameValueCollection,那么如何读取文件属性?
我想读取这个属性,然后进行一些操作。
这应该为您提供 AppSettings 文件属性的文件路径:
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
.AppSettings
.File;
在我的 web.config 我有以下内容
<appSettings file="C:\Config\myproj\Appsettings.Config">
文件属性不属于 NameValueCollection,那么如何读取文件属性? 我想读取这个属性,然后进行一些操作。
这应该为您提供 AppSettings 文件属性的文件路径:
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
.AppSettings
.File;