HttpHandlerAction 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
配置 HttpHandlersSection 配置节。 此类不能被继承。
public ref class HttpHandlerAction sealed : System::Configuration::ConfigurationElement
public sealed class HttpHandlerAction : System.Configuration.ConfigurationElement
type HttpHandlerAction = class
inherit ConfigurationElement
Public NotInheritable Class HttpHandlerAction
Inherits ConfigurationElement
- 继承
示例
下面的代码示例演示如何使用该 HttpModuleAction 类型。
// Get the handlers.
System.Web.Configuration.HttpHandlerActionCollection httpHandlers = httpHandlersSection.Handlers;
'Get the handlers.
Dim httpHandlers As System.Web.Configuration.HttpHandlerActionCollection = httpHandlersSection.Handlers
以下配置摘录显示了如何以声明方式为 httpHandlers
节指定值。
<httpHandlers>
<add path="Calculator.custom"
type="Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler"
verb="GET" validate="false" />
</httpHandlers>
注解
该 HttpHandlerAction 类提供了一种以编程方式访问和修改 add
配置节元素 httpHandlers
的方法。
此类型是包含和 HttpHandlerActionCollection 类型的 HttpHandlersSection 组的一部分。
备注
可以根据HttpHandlerAction其值为Everywhere的 section 属性AllowDefinition读取和写入配置文件的相关部分的信息。
ASP.NET 先在应用程序的专用 \bin 目录中搜索处理程序程序集 DLL,然后在系统程序集缓存中搜索。
构造函数
HttpHandlerAction(String, String, String) |
使用传递的参数初始化 HttpHandlerAction 类的新实例。 |
HttpHandlerAction(String, String, String, Boolean) |
使用传递的参数初始化 HttpHandlerAction 类的新实例。 |