您的位置:首页 > 其它

如何获取.NET应用程序设置文件user.config的路径

2017-12-29 16:26 239 查看
仅记录。。。找了好久。。。

引用System.Configuration

调用

System.Configuration.ConfigurationManager.OpenExeConfiguration

(System.Configuration.ConfigurationUserLevel.PerUserRoamingAndLocal)

.FilePath
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  .net