Controller.Initialize Method (RequestContext)


Initializes data that might not be available when the constructor is called.

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


protected override void Initialize(
    RequestContext requestContext
virtual void Initialize(
    RequestContext^ requestContext
) override
override Initialize : 
        requestContext:RequestContext -> unit
Protected Overrides Sub Initialize (
    requestContext As RequestContext



This method cannot be called directly. Override this method in order to provide additional processing tasks before any ActionResult methods are called, such as setting the thread culture or assigning a custom provider for TempData objects. If you override this method, call the base control's Initialize method.

See Also

Controller Class
System.Web.Mvc Namespace

Return to top