IViewPageActivator.Create Method (ControllerContext, Type)
Provides fine-grained control over how view pages are created using dependency injection.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
The WebFormView and RazorView classes have constructor method overloads that implement this interface in order to support dependency injection. Creating a WebFormView or RazorView class that implements the IViewPageActivator interface lets you control how ViewPage, ViewUserControl, and WebViewPage objects are instantiated.