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.

适用于