PageHandlerFactory 类

定义

创建从 Page 类继承并实现 IHttpHandler 接口的类的实例。 实例被动态地创建以处理针对 ASP.NET 文件的请求。 PageHandlerFactory 类是 ASP.NET 页的默认处理程序工厂实现。

public ref class PageHandlerFactory
public class PageHandlerFactory
type PageHandlerFactory = class
    interface IHttpHandlerFactory
Public Class PageHandlerFactory
继承
PageHandlerFactory
实现

注解

PageHandlerFactory 实现 接口, IHttpHandlerFactory 为 ASP.NET 文件提供默认 HTTP 处理程序。 PageHandlerFactory如有必要, 调用 ASP.NET 编译系统进行编译,并返回与 URL 对应的确切类型,然后创建该类型的实例。 页面类型继承自 Page 类并实现 IHttpHandler 接口。

若要生成自定义页面处理程序工厂,请在 httpHandlers 元素 (ASP.NET 设置架构) 配置部分中为应用程序Web.config文件注册IHttpHandlerFactoryPageHandlerFactory自定义类。

构造函数

PageHandlerFactory()

初始化 PageHandlerFactory 类的新实例。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHandler(HttpContext, String, String, String)

返回 IHttpHandler 接口的实例以处理请求的资源。

GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ReleaseHandler(IHttpHandler)

使工厂可以重用现有的处理程序实例。

ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅