Share via


RazorViewEngine.CreateView Method

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

'Declaration
Protected Overrides Function CreateView ( _
    controllerContext As ControllerContext, _
    viewPath As String, _
    masterPath As String _
) As IView
'Usage
Dim controllerContext As ControllerContext
Dim viewPath As String
Dim masterPath As String
Dim returnValue As IView

returnValue = Me.CreateView(controllerContext, _
    viewPath, masterPath)
protected override IView CreateView(
    ControllerContext controllerContext,
    string viewPath,
    string masterPath
)
protected:
virtual IView^ CreateView(
    ControllerContext^ controllerContext, 
    String^ viewPath, 
    String^ masterPath
) override
protected override function CreateView(
    controllerContext : ControllerContext, 
    viewPath : String, 
    masterPath : String
) : IView

Parameters

Return Value

Type: System.Web.Mvc.IView
The view.

See Also

Reference

RazorViewEngine Class

System.Web.Mvc Namespace