Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Init Method
Collapse the table of content
Expand the table of content

IHttpModule.Init Method

Initializes a module and prepares it to handle requests.

[Visual Basic]
Sub Init( _
   ByVal context As HttpApplication _
void Init(
   HttpApplication context
void Init(
   HttpApplication* context
function Init(
   context : HttpApplication


An HttpApplication that provides access to the methods, properties, and events common to all application objects within an ASP.NET application


Use Init to register event handling methods with specific events.


An example of a custom module that implements IHttpModule is provided in Custom HttpModule Example.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

IHttpModule Interface | IHttpModule Members | System.Web Namespace

© 2015 Microsoft