.NET Framework Class Library
IHttpModule Interface

Provides module initialization and disposal events to the implementing class.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)
Syntax
Public Interface IHttpModule
public interface IHttpModule
public interface class IHttpModule
type IHttpModule =  interface end

The IHttpModule type exposes the following members.

Methods
  NameDescription
Public method DisposeDisposes of the resources (other than memory) used by the module that implements IHttpModule.
Public method InitInitializes a module and prepares it to handle requests.
Top
Examples

For an example of a custom module that implements IHttpModule, see Walkthrough: Creating and Registering a Custom HTTP Module.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
Platforms

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.