Export (0) Print
Expand All

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)

public class RazorView : BuildManagerCompiledView

The RazorView type exposes the following members.

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

  NameDescription
Public propertyLayoutPathGets the layout or master page.
Public propertyRunViewStartPagesGets a value that indicates whether view start files should be executed before the view.
Public propertyViewPathGets or sets the view path. (Inherited from BuildManagerCompiledView.)
Public propertyViewStartFileExtensionsGets or sets the set of file extensions that will be used when looking up view start files.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRenderRenders the specified view context by using the specified the writer object. (Inherited from BuildManagerCompiledView.)
Protected methodRenderViewRenders the specified view context by using the specified writer and WebViewPage instance. (Overrides BuildManagerCompiledView.RenderView(ViewContext, TextWriter, Object).)
Public methodToString (Inherited from Object.)
Top

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