Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes the specified request context.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
protected virtual void Initialize(
RequestContext requestContext
)
protected:
virtual void Initialize(
RequestContext^ requestContext
)
abstract Initialize :
requestContext:RequestContext -> unit
override Initialize :
requestContext:RequestContext -> unit
Protected Overridable Sub Initialize (
requestContext As RequestContext
)
Parameters
requestContext
Type: System.Web.Routing.RequestContextThe request context.
Remarks
This method is responsible for setting up the controller in preparation for handling a request. By default, this method only sets the ControllerContext property. However, your implementation of this method can perform any required tasks before it handles a request, such as setting the current culture, finding the action to execute, and so on.
See Also
ControllerBase Class
System.Web.Mvc Namespace
Return to top