RazorView Class

Definition

Represents the class used to create views that have Razor syntax.

public class RazorView : System.Web.Mvc.BuildManagerCompiledView
type RazorView = class
    inherit BuildManagerCompiledView
Public Class RazorView
Inherits BuildManagerCompiledView
Inheritance

Constructors

RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>)

Initializes a new instance of the RazorView class.

RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>, IViewPageActivator)

Initializes a new instance of the RazorView class using the view page activator.

Properties

LayoutPath

Gets the layout or master page.

RunViewStartPages

Gets a value that indicates whether view start files should be executed before the view.

ViewPath

Gets or sets the view path.

(Inherited from BuildManagerCompiledView)
ViewStartFileExtensions

Gets or sets the set of file extensions that will be used when looking up view start files.

Methods

Render(ViewContext, TextWriter)

Renders the specified view context by using the specified the writer object.

(Inherited from BuildManagerCompiledView)
RenderView(ViewContext, TextWriter, Object)

Renders the specified view context by using the specified writer and WebViewPage instance.

Applies to