Share via


RazorViewEngine Class

Definition

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

public class RazorViewEngine : System.Web.Mvc.BuildManagerViewEngine
type RazorViewEngine = class
    inherit BuildManagerViewEngine
Public Class RazorViewEngine
Inherits BuildManagerViewEngine
Inheritance

Constructors

RazorViewEngine()

Initializes a new instance of the RazorViewEngine class.

RazorViewEngine(IViewPageActivator)

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

Properties

AreaMasterLocationFormats

Gets or sets the area-enabled master location formats.

(Inherited from VirtualPathProviderViewEngine)
AreaPartialViewLocationFormats

Gets or sets the area-enabled partial-view location formats.

(Inherited from VirtualPathProviderViewEngine)
AreaViewLocationFormats

Gets or sets the area-enabled view location formats.

(Inherited from VirtualPathProviderViewEngine)
DisplayModeProvider

Gets or sets the display mode provider.

(Inherited from VirtualPathProviderViewEngine)
FileExtensions

Gets or sets the file-name extensions that are used to locate a view.

(Inherited from VirtualPathProviderViewEngine)
IsPrecompiledNonUpdateableSite (Inherited from BuildManagerViewEngine)
MasterLocationFormats

Gets or sets the master location formats.

(Inherited from VirtualPathProviderViewEngine)
PartialViewLocationFormats

Gets or sets the partial-view location formats.

(Inherited from VirtualPathProviderViewEngine)
ViewLocationCache

Gets or sets the view location cache.

(Inherited from VirtualPathProviderViewEngine)
ViewLocationFormats

Gets or sets the view location formats.

(Inherited from VirtualPathProviderViewEngine)
ViewPageActivator

Gets the view page activator.

(Inherited from BuildManagerViewEngine)
VirtualPathProvider

Gets or sets the virtual path provider.

(Inherited from VirtualPathProviderViewEngine)

Methods

CreatePartialView(ControllerContext, String)

Creates a partial view using the specified controller context and partial path.

CreateView(ControllerContext, String, String)

Creates a view by using the specified controller context and the paths of the view and master view.

FileExists(ControllerContext, String)

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

(Inherited from BuildManagerViewEngine)
FindPartialView(ControllerContext, String, Boolean)

Finds the specified partial view by using the specified controller context.

(Inherited from VirtualPathProviderViewEngine)
FindView(ControllerContext, String, String, Boolean)

Finds the specified view by using the specified controller context and master view name.

(Inherited from VirtualPathProviderViewEngine)
ReleaseView(ControllerContext, IView)

Releases the specified view by using the specified controller context.

(Inherited from VirtualPathProviderViewEngine)

Applies to