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)

Syntax

protected override IView CreateView(
    ControllerContext controllerContext,
    string viewPath,
    string masterPath
)
protected:
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

Parameters

Return Value

Type: System.Web.Mvc.IView

The view.

See Also

RazorViewEngine Class
System.Web.Mvc Namespace

Return to top