C#取得Web程序和非Web程序的根目录的N种取法总结
摘要:非Web程序1.AppDomain.CurrentDomain.BaseDirectory2.Environment.CurrentDire...
非Web程序
1.AppDomain.CurrentDomain.BaseDirectory
2.Environment.CurrentDirectory
3.HttpRuntime.BinDirectory
Thepathtothecurrentapplication's/bindirectory.
Web程序
HttpCurrent.Context.Server.Mappath();
【C#取得Web程序和非Web程序的根目录的N种取法总结】相关文章:
★ 深入C# winform清除由GDI绘制出来的所有线条或图形的解决方法