简体   繁体   English

带有 Context.Handler 和 Server.Transfer 的命名空间?

[英]Namespace with Context.Handler and Server.Transfer?

What .NET namespace or class includes both Context.Handler and Server.Transfer?什么 .NET 命名空间或类同时包含 Context.Handler 和 Server.Transfer?

I think one may include both and my hunt on MSDN returned null.我认为一个可能包括两者,我在 MSDN 上的搜索返回 null。

System.Web. System.Web程序。

HttpContext.Current.Handler
HttpContext.Current.Request.Server.Transfer

Hmmmm, I talking about them as they are implemented here: 嗯,我说的是它们在此处的实现:

http://blog.benday.com/archive/2008/03/31/23176.aspx http://blog.benday.com/archive/2008/03/31/23176.aspx

(at least Context.Handler there) (至少在那里有Context.Handler)

I am still having trouble in VS making that reference. 我仍然无法在VS中进行参考。

Context.Handler is an instance of an HttpContext. Context.Handler是HttpContext的实例。

HttpContext exposes the CURRENT instance for the request under the HttpContext.Current property, however the current context can also be passed in HTTPHandlers in the ProcessRequest method: HttpContext在HttpContext.Current属性下公开请求的CURRENT实例,但是当前上下文也可以在ProcessRequest方法的HTTPHandlers中传递:

void ProcessRequest(HttpContext context)

System.Web.HttpServerUtility.Transfer in System.Web.DLL System.Web.DLL中的System.Web.HttpServerUtility.Transfer

Need more info for Context.Handler. 需要更多有关Context.Handler的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM