RazorView RazorView 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>) RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>) RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>)

Initializes a new instance of the RazorView class.

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

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

Properties

LayoutPath LayoutPath LayoutPath

Gets the layout or master page.

RunViewStartPages RunViewStartPages RunViewStartPages

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

ViewPath ViewPath ViewPath

Gets or sets the view path.

(Inherited from BuildManagerCompiledView)
ViewStartFileExtensions ViewStartFileExtensions ViewStartFileExtensions

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

Methods

Render(ViewContext, TextWriter) Render(ViewContext, TextWriter) Render(ViewContext, TextWriter)

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

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

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

Applies to