Sch*_*der 5 c# httphandler visual-studio-2008
你怎么看到哪些HttpHandler注册了?如何循环注册的HttpHandlers?我想所有的处理程序都在某个地方,但在哪里.
using System.Configuration;
using System.Web.Configuration;
Configuration cfg = WebConfigurationManager.OpenWebConfiguration("/");
HttpHandlersSection hdlrs = (HttpHandlersSection)cfg.GetSection("system.web/httpHandlers");
Run Code Online (Sandbox Code Playgroud)
刚刚从这里复制:Get Registered HttpHandlers in the Web.Config from HttpContext