Share via


RazorViewEngine Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class RazorViewEngine _
    Inherits BuildManagerViewEngine
'Usage
Dim instance As RazorViewEngine
public class RazorViewEngine : BuildManagerViewEngine
public ref class RazorViewEngine : public BuildManagerViewEngine
public class RazorViewEngine extends BuildManagerViewEngine

The RazorViewEngine type exposes the following members.

Constructors

  Name Description
Public method RazorViewEngine() Initializes a new instance of the RazorViewEngine class.
Public method RazorViewEngine(IViewPageActivator) Initializes a new instance of the RazorViewEngine class using the view page activator.

Top

Properties

  Name Description
Public property AreaMasterLocationFormats Gets or sets the area-enabled master location formats. (Inherited from VirtualPathProviderViewEngine.)
Public property AreaPartialViewLocationFormats Gets or sets the area-enabled partial-view location formats. (Inherited from VirtualPathProviderViewEngine.)
Public property AreaViewLocationFormats Gets or sets the area-enabled view location formats. (Inherited from VirtualPathProviderViewEngine.)
Public property FileExtensions Gets or sets the file-name extensions that are used to locate a view. (Inherited from VirtualPathProviderViewEngine.)
Public property MasterLocationFormats Gets or sets the master location formats. (Inherited from VirtualPathProviderViewEngine.)
Public property PartialViewLocationFormats Gets or sets the partial-view location formats. (Inherited from VirtualPathProviderViewEngine.)
Public property ViewLocationCache Gets or sets the view location cache. (Inherited from VirtualPathProviderViewEngine.)
Public property ViewLocationFormats Gets or sets the view location formats. (Inherited from VirtualPathProviderViewEngine.)
Protected property ViewPageActivator Gets the view page activator. (Inherited from BuildManagerViewEngine.)
Protected property VirtualPathProvider Gets or sets the virtual path provider. (Inherited from VirtualPathProviderViewEngine.)

Top

Methods

  Name Description
Protected method CreatePartialView Creates a partial view using the specified controller context and partial path. (Overrides VirtualPathProviderViewEngine.CreatePartialView(ControllerContext, String).)
Protected method CreateView Creates a view by using the specified controller context and the paths of the view and master view. (Overrides VirtualPathProviderViewEngine.CreateView(ControllerContext, String, String).)
Public method Equals (Inherited from Object.)
Protected method FileExists Gets a value that indicates whether a file exists in the specified virtual file system (path). (Inherited from BuildManagerViewEngine.)
Protected method Finalize (Inherited from Object.)
Public method FindPartialView Finds the specified partial view by using the specified controller context. (Inherited from VirtualPathProviderViewEngine.)
Public method FindView Finds the specified view by using the specified controller context and master view name. (Inherited from VirtualPathProviderViewEngine.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ReleaseView Releases the specified view by using the specified controller context. (Inherited from VirtualPathProviderViewEngine.)
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