This documentation is archived and is not being maintained.

HttpContext.CurrentHandler Property

Gets the IHttpHandler object that represents the currently executing handler.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public IHttpHandler CurrentHandler { get; }
/** @property */
public IHttpHandler get_CurrentHandler ()

public function get CurrentHandler () : IHttpHandler

Not applicable.

Property Value

An IHttpHandler that represents the currently executing handler.

The currently executing handler that is referenced by the CurrentHandler property might be different than the handler that is referenced by the Handler property. This can occur when another handler was requested by using the Execute method or the Transfer method. When the currently executing handler finishes processing, the previously determined handler is restored.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: