RazorViewEngine Class

 

Represents a view engine that is used to render a Web page that uses the ASP.NET Razor syntax.

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

Inheritance Hierarchy

System.Object
  System.Web.Mvc.VirtualPathProviderViewEngine
    System.Web.Mvc.BuildManagerViewEngine
      System.Web.Mvc.RazorViewEngine

Syntax

public class RazorViewEngine : BuildManagerViewEngine
public ref class RazorViewEngine : BuildManagerViewEngine
type RazorViewEngine = 
    class
        inherit BuildManagerViewEngine
    end
Public Class RazorViewEngine
    Inherits BuildManagerViewEngine

Constructors

Name Description
System_CAPS_pubmethod RazorViewEngine()

Initializes a new instance of the RazorViewEngine class.

System_CAPS_pubmethod RazorViewEngine(IViewPageActivator)

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

Properties

Name Description
System_CAPS_pubproperty AreaMasterLocationFormats

Gets or sets the area-enabled master location formats.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_pubproperty AreaPartialViewLocationFormats

Gets or sets the area-enabled partial-view location formats.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_pubproperty AreaViewLocationFormats

Gets or sets the area-enabled view location formats.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_protproperty DisplayModeProvider

Gets or sets the display mode provider.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_pubproperty FileExtensions

Gets or sets the file-name extensions that are used to locate a view.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_protproperty IsPrecompiledNonUpdateableSite

(Inherited from BuildManagerViewEngine.)

System_CAPS_pubproperty MasterLocationFormats

Gets or sets the master location formats.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_pubproperty PartialViewLocationFormats

Gets or sets the partial-view location formats.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_pubproperty ViewLocationCache

Gets or sets the view location cache.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_pubproperty ViewLocationFormats

Gets or sets the view location formats.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_protproperty ViewPageActivator

Gets the view page activator.(Inherited from BuildManagerViewEngine.)

System_CAPS_protproperty VirtualPathProvider

Gets or sets the virtual path provider.(Inherited from VirtualPathProviderViewEngine.)

Methods

Name Description
System_CAPS_protmethod CreatePartialView(ControllerContext, String)

Creates a partial view using the specified controller context and partial path.(Overrides VirtualPathProviderViewEngine.CreatePartialView(ControllerContext, String).)

System_CAPS_protmethod CreateView(ControllerContext, String, String)

Creates a view by using the specified controller context and the paths of the view and master view.(Overrides VirtualPathProviderViewEngine.CreateView(ControllerContext, String, String).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod FileExists(ControllerContext, String)

Gets a value that indicates whether a file exists in the specified virtual file system (path).(Inherited from BuildManagerViewEngine.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod FindPartialView(ControllerContext, String, Boolean)

Finds the specified partial view by using the specified controller context.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_pubmethod FindView(ControllerContext, String, String, Boolean)

Finds the specified view by using the specified controller context and master view name.(Inherited from VirtualPathProviderViewEngine.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ReleaseView(ControllerContext, IView)

Releases the specified view by using the specified controller context.(Inherited from VirtualPathProviderViewEngine.)

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