Dela via


Microsoft.AspNetCore.Mvc.Razor Namespace

Provides types required for runtime support for Razor Views.

Classes

GeneratedTagHelperAttributeContext

Contains information for the ITagHelper attribute code generation process.

HelperResult

Represents a deferred write operation in a RazorPage.

InjectChunk
InjectChunkVisitor
InjectParameterGenerator
LanguageViewLocationExpander

A IViewLocationExpander that adds the language as an extension prefix to view names. Language that is getting added as extension prefix comes from HttpContext.

ModelChunk

Chunk for an @model directive.

MvcCSharpChunkVisitor
MvcCSharpCodeGenerator
MvcCSharpCodeVisitor
MvcCSharpDesignTimeCodeVisitor
MvcRazorCodeParser
MvcRazorHost
MvcRazorParser

A subtype of RazorParser that MvcRazorHost uses to support inheritance of tag helpers from _ViewImports files.

MvcTagHelperAttributeValueCodeRenderer

Renders code for tag helper property initialization.

RazorPage

Represents properties and methods that are needed in order to render a view that uses Razor syntax.

RazorPage<TModel>

Represents the properties and methods that are needed in order to render a view that uses Razor syntax.

RazorPageActivator

Provides methods to activate properties on a IRazorPage instance.

RazorPageBase

Represents properties and methods that are needed in order to render a view that uses Razor syntax.

RazorView

Default implementation for IView that executes one or more IRazorPage as parts of its execution.

RazorViewEngine

Default implementation of IRazorViewEngine.

RazorViewEngineOptions

Provides programmatic configuration for the RazorViewEngine.

TagHelperInitializer<TTagHelper>

Initializes an ITagHelper before it's executed.

ViewHierarchyUtility

Contains methods to locate _ViewStart.cshtml and _ViewImports.cshtml

ViewLocationExpanderContext

A context for containing information for IViewLocationExpander.

Structs

RazorPageFactoryResult

Result of CreateFactory(String).

RazorPageResult

Result of locating a IRazorPage.

Interfaces

IMvcRazorHost

Specifies the contracts for a Razor host that parses Razor files and generates C# code.

IRazorPage

Represents properties and methods that are used by RazorView for execution.

IRazorPageActivator

Provides methods to activate properties on a IRazorPage instance.

IRazorPageFactoryProvider

Defines methods that are used for creating IRazorPage instances at a given path.

IRazorViewEngine

An IViewEngine used to render pages that use the Razor syntax.

ITagHelperActivator

Provides methods to create a tag helper.

ITagHelperFactory

Provides methods to create and initialize tag helpers.

ITagHelperInitializer<TTagHelper>

Initializes an ITagHelper before it's executed.

IViewLocationExpander

Specifies the contracts for a view location expander that is used by RazorViewEngine instances to determine search paths for a view.

Enums

LanguageViewLocationExpanderFormat

Specifies the localized view format for LanguageViewLocationExpander.

Delegates

RenderAsyncDelegate

A delegate for RenderAsync.

Remarks

For more information about MVC views, see Views in ASP.NET Core MVC.