RazorView Class


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

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

Inheritance Hierarchy



public class RazorView : BuildManagerCompiledView
public ref class RazorView : BuildManagerCompiledView
type RazorView = 
        inherit BuildManagerCompiledView
Public Class RazorView
    Inherits BuildManagerCompiledView


Name Description
System_CAPS_pubmethod RazorView(ControllerContext, String, String, Boolean, IEnumerable<String>)

Initializes a new instance of the RazorView class.

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

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


Name Description
System_CAPS_pubproperty LayoutPath

Gets the layout or master page.

System_CAPS_pubproperty RunViewStartPages

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

System_CAPS_pubproperty ViewPath

Gets or sets the view path.(Inherited from BuildManagerCompiledView.)

System_CAPS_pubproperty ViewStartFileExtensions

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


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Render(ViewContext, TextWriter)

Renders the specified view context by using the specified the writer object.(Inherited from BuildManagerCompiledView.)

System_CAPS_protmethod RenderView(ViewContext, TextWriter, Object)

Renders the specified view context by using the specified writer and WebViewPage instance.(Overrides BuildManagerCompiledView.RenderView(ViewContext, TextWriter, Object).)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

System.Web.Mvc Namespace

Return to top