IHttpModule 接口
定义
提供模块初始化和处置事件以实现类。Provides module initialization and disposal events to the implementing class.
public interface class IHttpModule
public interface IHttpModule
type IHttpModule = interface
Public Interface IHttpModule
- 派生
示例
有关实现的自定义模块的示例 IHttpModule ,请参阅 演练:创建和注册自定义 HTTP 模块。For an example of a custom module that implements IHttpModule, see Walkthrough: Creating and Registering a Custom HTTP Module.
方法
| Dispose() |
处置实现 IHttpModule 的模块使用的资源(内存除外)。Disposes of the resources (other than memory) used by the module that implements IHttpModule. |
| Init(HttpApplication) |
初始化模块,并使其为处理请求做好准备。Initializes a module and prepares it to handle requests. |