PreviousHandler Property

HttpContext.PreviousHandler Property


Gets the IHttpHandler object for the parent handler.

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

public IHttpHandler PreviousHandler { get; }

Property Value

Type: System.Web.IHttpHandler

An IHttpHandler instance, or null if no previous handler was found.

The PreviousHandler property corresponds to the last handler before the current request was executed.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft