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 _
)
[C#]
void Init(
   HttpApplication context
);
[C++]
void Init(
   HttpApplication* context
);
[JScript]
function Init(
   context : HttpApplication
);

Parameters

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

Remarks

Use Init to register event handling methods with specific events.

Example

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

Requirements

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

See Also

IHttpModule Interface | IHttpModule Members | System.Web Namespace

Show:
© 2015 Microsoft