在Global.asax文件中取绝对路径的方法:
string absolutelyPath =AppDomain.CurrentDomain.BaseDirectory;
获取Global.asax中绝对路径
本文介绍了一种在Global.asax文件中获取应用程序绝对路径的方法。通过使用AppDomain.CurrentDomain.BaseDirectory属性,可以轻松地取得当前应用程序的根目录路径。
在Global.asax文件中取绝对路径的方法:
string absolutelyPath =AppDomain.CurrentDomain.BaseDirectory;

被折叠的 条评论
为什么被折叠?