RazorViewEngine Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Default implementation of IRazorViewEngine.
public ref class RazorViewEngine : Microsoft::AspNetCore::Mvc::Razor::IRazorViewEngine, Microsoft::AspNetCore::Mvc::ViewEngines::IViewEngine
public class RazorViewEngine : Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine, Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine
type RazorViewEngine = class
interface IRazorViewEngine
interface IViewEngine
Public Class RazorViewEngine
Implements IRazorViewEngine, IViewEngine
- Inheritance
-
RazorViewEngine
- Implements
Remarks
For ViewResults
returned from controllers, views should be located in ViewLocationFormats by default. For the controllers in an area, views should exist in AreaViewLocationFormats.
Constructors
RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, ILoggerFactory, DiagnosticListener) |
Initializes a new instance of the RazorViewEngine. |
RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, ILoggerFactory) |
Initializes a new instance of the RazorViewEngine. |
RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, RazorProject, ILoggerFactory, DiagnosticSource) |
Obsolete.
Initializes a new instance of the RazorViewEngine. |
RazorViewEngine(IRazorPageFactoryProvider, IRazorPageActivator, HtmlEncoder, IOptions<RazorViewEngineOptions>, RazorProjectFileSystem, ILoggerFactory, DiagnosticSource) |
Initializes a new instance of the RazorViewEngine |
Fields
ViewExtension |
The view extension |
Properties
ViewLookupCache |
A cache for results of view lookups. |
Methods
FindPage(ActionContext, String) |
Finds the page with the given |
FindView(ActionContext, String, Boolean) |
Finds the view with the given |
GetAbsolutePath(String, String) |
Converts the given |
GetNormalizedRouteValue(ActionContext, String) |
Gets the case-normalized route value for the specified route |
GetPage(String, String) |
Gets the page with the given |
GetView(String, String, Boolean) |
Gets the view with the given |