1
我正在研究ASP.NET 4.0 Web窗体应用程序正在使用的C#库类。在我的课,我想这里描述访问HttpRequest.Application对象:VS 2010智能感知问题
http://msdn.microsoft.com/en-us/library/system.web.httprequest.applicationpath.aspx
该文件说,它是在System.Web命名空间,但即使我在库项目添加引用,它仍然不适用于我。
我能到ApplicationPath财产的唯一方法是通过使用:
HttpContext.Current.Request.ApplicationPath;
这是怎么回事?
完美的答案,谢谢:) – IrishChieftain
@Irish:请注明rsbarro的作为一个答案。 – Sung
@Just不得不等待SO时间限制... – IrishChieftain