Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ControllerBase::Initialize Method

Initializes the specified request context.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
protected:
virtual void Initialize(
	RequestContext^ requestContext
)

Parameters

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.