UrlRoutingModule.PostMapRequestHandler Method (HttpContextBase)

 
Note: This API is now obsolete.

Assigns the HTTP handler for the current request to the context.

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

[ObsoleteAttribute("This method is obsolete. Override the Init method to use the PostMapRequestHandler event.")]
public virtual void PostMapRequestHandler(
	HttpContextBase context
)

Parameters

context
Type: System.Web.HttpContextBase

Encapsulates all HTTP-specific information about an individual HTTP request.

Exception Condition
InvalidOperationException

The RouteData.RouteHandler property for the route is null.

The PostMapRequestHandler method is called when the PostMapRequestHandler event is raised.

.NET Framework
Available since 3.5
Return to top
Show: