RazorViewEngine.CreateView(ControllerContext, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a view by using the specified controller context and the paths of the view and master view.
protected override System.Web.Mvc.IView CreateView (System.Web.Mvc.ControllerContext controllerContext, string viewPath, string masterPath);
override this.CreateView : System.Web.Mvc.ControllerContext * string * string -> System.Web.Mvc.IView
Protected Overrides Function CreateView (controllerContext As ControllerContext, viewPath As String, masterPath As String) As IView
Parameters
- controllerContext
- ControllerContext
The controller context.
- viewPath
- String
The path to the view.
- masterPath
- String
The path to the master view.
Returns
The view.