RazorViewEngineOptions RazorViewEngineOptions RazorViewEngineOptions Class

Definition

Provides programmatic configuration for the RazorViewEngine.

public class RazorViewEngineOptions : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch>
type RazorViewEngineOptions = class
    interface seq<ICompatibilitySwitch>
    interface IEnumerable
Public Class RazorViewEngineOptions
Implements IEnumerable(Of ICompatibilitySwitch)
Inheritance
RazorViewEngineOptionsRazorViewEngineOptionsRazorViewEngineOptions
Implements

Constructors

RazorViewEngineOptions() RazorViewEngineOptions() RazorViewEngineOptions()

Properties

AdditionalCompilationReferences AdditionalCompilationReferences AdditionalCompilationReferences

Gets the MetadataReference instances that should be included in Razor compilation, along with those discovered by MetadataReferenceFeatureProviders.

AllowRecompilingViewsOnFileChange AllowRecompilingViewsOnFileChange AllowRecompilingViewsOnFileChange

Gets or sets a value that determines if Razor files (Razor Views and Razor Pages) are recompiled and updated if files change on disk.

When true, MVC will use Watch(String) to watch for changes to Razor files in configured IFileProvider instances.

AreaPageViewLocationFormats AreaPageViewLocationFormats AreaPageViewLocationFormats

Gets the locations where RazorViewEngine will search for views (such as layouts and partials) when searched from the context of rendering a Razor Page within an area.

AreaViewLocationFormats AreaViewLocationFormats AreaViewLocationFormats

Gets the locations where RazorViewEngine will search for views within an area.

CompilationCallback CompilationCallback CompilationCallback

Gets or sets the callback that is used to customize Razor compilation to change compilation settings you can update Compilation property.

CompilationOptions CompilationOptions CompilationOptions

Gets or sets the CSharpCompilationOptions used by Razor view compilation.

FileProviders FileProviders FileProviders

Gets the sequence of IFileProvider instances used by RazorViewEngine to locate Razor files.

PageViewLocationFormats PageViewLocationFormats PageViewLocationFormats

Gets the locations where RazorViewEngine will search for views (such as layouts and partials) when searched from the context of rendering a Razor Page.

ParseOptions ParseOptions ParseOptions

Gets or sets the CSharpParseOptions options used by Razor view compilation.

ViewLocationExpanders ViewLocationExpanders ViewLocationExpanders

Gets a IList<T> used by the RazorViewEngine.

ViewLocationFormats ViewLocationFormats ViewLocationFormats

Gets the locations where RazorViewEngine will search for views.

Explicit Interface Implementations

IEnumerable<ICompatibilitySwitch>.GetEnumerator() IEnumerable<ICompatibilitySwitch>.GetEnumerator() IEnumerable<ICompatibilitySwitch>.GetEnumerator()
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Extension Methods

GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext) GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext) GetWrapperProvider(IEnumerable<IWrapperProviderFactory>, WrapperProviderContext)

Gets an instance of IWrapperProvider for the supplied type.

FirstHtmlSymbolAs(IEnumerable<ISymbol>, HtmlSymbolType) FirstHtmlSymbolAs(IEnumerable<ISymbol>, HtmlSymbolType) FirstHtmlSymbolAs(IEnumerable<ISymbol>, HtmlSymbolType)

Converts the generic IEnumerable<T> to a IEnumerable<T> and finds the first HtmlSymbol with type type.

GetContent(IEnumerable<ISymbol>, SourceLocation) GetContent(IEnumerable<ISymbol>, SourceLocation) GetContent(IEnumerable<ISymbol>, SourceLocation)

Applies to