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 | |
---|---|---|
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. |
Top
Properties
Name | Description | |
---|---|---|
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. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Render | Renders the specified view context by using the specified the writer object. (Inherited from BuildManagerCompiledView.) | |
RenderView | Renders the specified view context by using the specified writer and WebViewPage instance. (Overrides BuildManagerCompiledView.RenderView(ViewContext, TextWriter, Object).) | |
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.