RazorViewEngine RazorViewEngine 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() RazorViewEngine() RazorViewEngine()

Initializes a new instance of the RazorViewEngine class.

RazorViewEngine(IViewPageActivator) RazorViewEngine(IViewPageActivator) RazorViewEngine(IViewPageActivator)

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

Methods

CreatePartialView(ControllerContext, String) CreatePartialView(ControllerContext, String) CreatePartialView(ControllerContext, String)

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

CreateView(ControllerContext, String, String) CreateView(ControllerContext, String, String) 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) FileExists(ControllerContext, String) 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) FindPartialView(ControllerContext, String, Boolean) FindPartialView(ControllerContext, String, Boolean)

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

(Inherited from VirtualPathProviderViewEngine)
FindView(ControllerContext, String, String, Boolean) FindView(ControllerContext, String, String, Boolean) 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) ReleaseView(ControllerContext, IView) ReleaseView(ControllerContext, IView)

Releases the specified view by using the specified controller context.

(Inherited from VirtualPathProviderViewEngine)

Properties

AreaMasterLocationFormats AreaMasterLocationFormats AreaMasterLocationFormats

Gets or sets the area-enabled master location formats.

(Inherited from VirtualPathProviderViewEngine)
AreaPartialViewLocationFormats AreaPartialViewLocationFormats AreaPartialViewLocationFormats

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

(Inherited from VirtualPathProviderViewEngine)
AreaViewLocationFormats AreaViewLocationFormats AreaViewLocationFormats

Gets or sets the area-enabled view location formats.

(Inherited from VirtualPathProviderViewEngine)
DisplayModeProvider DisplayModeProvider DisplayModeProvider

Gets or sets the display mode provider.

(Inherited from VirtualPathProviderViewEngine)
FileExtensions FileExtensions FileExtensions

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

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

Gets or sets the master location formats.

(Inherited from VirtualPathProviderViewEngine)
PartialViewLocationFormats PartialViewLocationFormats PartialViewLocationFormats

Gets or sets the partial-view location formats.

(Inherited from VirtualPathProviderViewEngine)
ViewLocationCache ViewLocationCache ViewLocationCache

Gets or sets the view location cache.

(Inherited from VirtualPathProviderViewEngine)
ViewLocationFormats ViewLocationFormats ViewLocationFormats

Gets or sets the view location formats.

(Inherited from VirtualPathProviderViewEngine)
ViewPageActivator ViewPageActivator ViewPageActivator

Gets the view page activator.

(Inherited from BuildManagerViewEngine)
VirtualPathProvider VirtualPathProvider VirtualPathProvider

Gets or sets the virtual path provider.

(Inherited from VirtualPathProviderViewEngine)

Applies to