RazorViewEngine.CreateView Method (ControllerContext, String, String)


Creates a view by using the specified controller context and the paths of the view and master view.

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


protected override IView CreateView(
    ControllerContext controllerContext,
    string viewPath,
    string masterPath
virtual IView^ CreateView(
    ControllerContext^ controllerContext,
    String^ viewPath,
    String^ masterPath
) override
override CreateView : 
        controllerContext:ControllerContext *
        viewPath:string *
        masterPath:string -> IView
Protected Overrides Function CreateView (
    controllerContext As ControllerContext,
    viewPath As String,
    masterPath As String
) As IView


Return Value

Type: System.Web.Mvc.IView

The view.

See Also

RazorViewEngine Class
System.Web.Mvc Namespace

Return to top