Web API中如何获取相对地址的绝对地址 Server.MapPath

var sPath = System.Web.Hosting.HostingEnvironment.MapPath("/FilePath/");
原文地址:https://www.cnblogs.com/haoliansheng/p/8205082.html