获得PhysicalApplicationPath - GetPhysicalApplicationPath
2017-02-21 09:01:01 访问(1530) 赞(0) 踩(0)
/// <summary>
/// 获得PhysicalApplicationPath - GetPhysicalApplicationPath +
/// </summary>
/// <returns></returns>
public string GetPhysicalApplicationPath()
{
if (HttpContext.Current == null)
{
throw new Exception
(
"方法:"
+ MethodBase.GetCurrentMethod().ReflectedType.FullName
+ " "
+ MethodBase.GetCurrentMethod().ToString()
+ " 发生异常:"
+ "HttpContext.Current"
+ "值为null。"
);
}
return HttpContext.Current.Request.PhysicalApplicationPath;
}
标签:
获得PhysicalApplicationPath - GetPhysicalApplicationPath 


上一条:
下一条:
相关评论
发表评论