Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ControllerBase.Initialize Method (RequestContext)


Initializes the specified request context.

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

protected virtual void Initialize(
	RequestContext requestContext


Type: System.Web.Routing.RequestContext

The request context.

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.

Return to top
© 2015 Microsoft