IHttpHandlerFactory 接口
定义
定义类工厂为创建新的 IHttpHandler 对象而必须实现的协定。Defines the contract that class factories must implement to create new IHttpHandler objects.
public interface class IHttpHandlerFactory
public interface IHttpHandlerFactory
type IHttpHandlerFactory = interface
Public Interface IHttpHandlerFactory
- 派生
注解
实现接口的类 IHttpHandlerFactory 没有任何行为,只是动态制造实现接口的类的新实例 IHttpHandler 。A class that implements the IHttpHandlerFactory interface has no behavior except to dynamically manufacture new instances of classes that implement the IHttpHandler interface.
方法
| GetHandler(HttpContext, String, String, String) |
返回实现 IHttpHandler 接口的类的实例。Returns an instance of a class that implements the IHttpHandler interface. |
| ReleaseHandler(IHttpHandler) |
使工厂可以重用现有的处理程序实例。Enables a factory to reuse an existing handler instance. |