如何查看注册了哪些 HttpHandler? 您如何遍历已注册的 HttpHandlers?我想所有处理程序都在某个地方的集合中。
最佳答案
using System.Configuration;
using System.Web.Configuration;
Configuration cfg = WebConfigurationManager.OpenWebConfiguration("/");
HttpHandlersSection hdlrs = (HttpHandlersSection)cfg.GetSection("system.web/httpHandlers");
刚刚从这里复制:Get Registered HttpHandlers in the Web.Config from HttpContext
关于c# - 您如何查看已注册的 httphandlers 的集合?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7484870/