软件编程
位置:首页>> 软件编程>> C#编程>> C#取得Web程序和非Web程序的根目录的N种取法总结

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

  发布时间:2023-07-16 07:37:32 

标签:C#,根目录

非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();

0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com