Share via


RazorView Class

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

Inheritance Hierarchy

System.Object
  System.Web.Mvc.BuildManagerCompiledView
    System.Web.Mvc.RazorView

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

Syntax

'Declaration
Public Class RazorView _
    Inherits BuildManagerCompiledView
'Usage
Dim instance As RazorView
public class RazorView : BuildManagerCompiledView
public ref class RazorView : public BuildManagerCompiledView
public class RazorView extends BuildManagerCompiledView

The RazorView type exposes the following members.

Constructors

  Name Description
Public method RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>) Initializes a new instance of the RazorView class.
Public method RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>, IViewPageActivator) Initializes a new instance of the RazorView class using the view page activator.

Top

Properties

  Name Description
Public property LayoutPath Gets the layout or master page.
Public property RunViewStartPages Gets a value that indicates whether view start files should be executed before the view.
Public property ViewPath Gets or sets the view path. (Inherited from BuildManagerCompiledView.)
Public property ViewStartFileExtensions Gets or sets the set of file extensions that will be used when looking up view start files.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Render Renders the specified view context by using the specified the writer object. (Inherited from BuildManagerCompiledView.)
Protected method RenderView Renders the specified view context by using the specified writer and WebViewPage instance. (Overrides BuildManagerCompiledView.RenderView(ViewContext, TextWriter, Object).)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Mvc Namespace