Udostępnij za pośrednictwem


MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine Metoda

Definicja

Przeciążenia

AddRazorViewEngine(IMvcCoreBuilder)

Rejestruje usługi aparatu Razor view.

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Rejestruje usługi aparatu Razor view.

AddRazorViewEngine(IMvcCoreBuilder)

Źródło:
MvcRazorMvcCoreBuilderExtensions.cs
Źródło:
MvcRazorMvcCoreBuilderExtensions.cs
Źródło:
MvcRazorMvcCoreBuilderExtensions.cs

Rejestruje usługi aparatu Razor view.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorViewEngine (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddRazorViewEngine : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddRazorViewEngine (builder As IMvcCoreBuilder) As IMvcCoreBuilder

Parametry

builder
IMvcCoreBuilder

Element IMvcCoreBuilder.

Zwraca

Element IMvcCoreBuilder.

Dotyczy

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Źródło:
MvcRazorMvcCoreBuilderExtensions.cs
Źródło:
MvcRazorMvcCoreBuilderExtensions.cs
Źródło:
MvcRazorMvcCoreBuilderExtensions.cs

Rejestruje usługi aparatu Razor view.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorViewEngine (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> setupAction);
static member AddRazorViewEngine : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddRazorViewEngine (builder As IMvcCoreBuilder, setupAction As Action(Of RazorViewEngineOptions)) As IMvcCoreBuilder

Parametry

builder
IMvcCoreBuilder

Element IMvcCoreBuilder.

setupAction
Action<RazorViewEngineOptions>

Akcja konfiguracji, która konfiguruje element RazorViewEngineOptions.

Zwraca

Element IMvcCoreBuilder.

Dotyczy