c# - 您如何查看已注册的 httphandlers 的集合?

标签 c# visual-studio-2008 httphandler

如何查看注册了哪些 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/

相关文章:

nginx - HTTP 处理程序在 Mono MVC 3 下未正确注册

c# - 我应该如何使用 HttpRequest.GetBufferlessInputStream?

c++ - 复杂错误 LNK2005 : already defined C++

javascript - 在 Node JS 服务器端加载预编译的 Handlebar 模板

c# - 如何更快地在 Visual Studio 中编写代码?

c++ - 如何找到编译瓶颈?

c# - 如何隐藏一个asp :Image contained within a Repeater if the image field in the database is set to null

c# - CaSTLe Windsor 命名空间冲突

c# - 如何获取 xml 架构 (xsd) 的 cs 文件

c# - Wpf DatePicker 启动时验证错误