当前位置: 移动技术网 > IT编程>开发语言>c# > C#取得Web程序和非Web程序的根目录的N种取法总结

C#取得Web程序和非Web程序的根目录的N种取法总结

2019年07月18日  | 移动技术网IT编程  | 我要评论
非web程序 1.appdomain.currentdomain.basedirectory 2.environment.currentdirectory 3.httpru
非web程序

1.appdomain.currentdomain.basedirectory

2.environment.currentdirectory

3.httpruntime.bindirectory

the path to the current application's/bin directory.


web程序

httpcurrent.context.server.mappath();

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网