Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
RazorViewEngineOptions Class
Definition
- Namespace:
- Microsoft.AspNetCore.Mvc.Razor
- Assembly:
- Microsoft.AspNetCore.Mvc.Razor.dll
- Package:
- Microsoft.AspNetCore.Mvc.Razor v1.0.0
- Package:
- Microsoft.AspNetCore.Mvc.Razor v1.1.0
- Package:
- Microsoft.AspNetCore.App.Ref v10.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.Mvc.Razor v2.0.0
- Package:
- Microsoft.AspNetCore.Mvc.Razor v2.1.0
- Package:
- Microsoft.AspNetCore.Mvc.Razor v2.2.0
- Package:
- Microsoft.AspNetCore.App.Ref v3.0.1
- Package:
- Microsoft.AspNetCore.App.Ref v3.1.10
- Package:
- Microsoft.AspNetCore.App.Ref v5.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v6.0.36
- Package:
- Microsoft.AspNetCore.App.Ref v7.0.5
- Package:
- Microsoft.AspNetCore.App.Ref v8.0.19
- Package:
- Microsoft.AspNetCore.App.Ref v9.0.8
- Source:
- RazorViewEngineOptions.cs
- Source:
- RazorViewEngineOptions.cs
- Source:
- RazorViewEngineOptions.cs
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.
Provides programmatic configuration for the RazorViewEngine.
public ref class RazorViewEngineOptions
public ref class RazorViewEngineOptions : System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Infrastructure::ICompatibilitySwitch ^>
public class RazorViewEngineOptions
public class RazorViewEngineOptions : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch>
type RazorViewEngineOptions = class
type RazorViewEngineOptions = class
interface seq<ICompatibilitySwitch>
interface IEnumerable
Public Class RazorViewEngineOptions
Public Class RazorViewEngineOptions
Implements IEnumerable(Of ICompatibilitySwitch)
- Inheritance
-
RazorViewEngineOptions
- Implements
Constructors
| Name | Description |
|---|---|
| RazorViewEngineOptions() | |
Properties
| Name | Description |
|---|---|
| AdditionalCompilationReferences |
Obsolete.
Gets the MetadataReference instances that should be included in Razor compilation, along with those discovered by MetadataReferenceFeatureProviders. |
| 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 |
| 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 |
Gets the locations where RazorViewEngine will search for views within an area. |
| CompilationCallback |
Obsolete.
Gets or sets the callback that is used to customize Razor compilation to change compilation settings you can update Compilation property. |
| CompilationOptions |
Gets or sets the CSharpCompilationOptions used by Razor view compilation. |
| FileProviders |
Gets the sequence of IFileProvider instances used by RazorViewEngine to locate Razor files. |
| 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 |
Gets or sets the CSharpParseOptions options used by Razor view compilation. |
| ViewLocationExpanders |
Gets a IList<T> used by the RazorViewEngine. |
| ViewLocationFormats |
Gets the locations where RazorViewEngine will search for views. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IEnumerable.GetEnumerator() | |
| IEnumerable<ICompatibilitySwitch>.GetEnumerator() | |
Applies to
Feedback
Was this page helpful?
