MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
AddRazorViewEngine(IMvcCoreBuilder) |
Zaregistruje služby modulu Razor View. |
AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>) |
Zaregistruje služby modulu Razor View. |
AddRazorViewEngine(IMvcCoreBuilder)
Zaregistruje služby modulu 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
Hodnota IMvcCoreBuilder
Návraty
Hodnota IMvcCoreBuilder
Platí pro
AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)
Zaregistruje služby modulu 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
Hodnota IMvcCoreBuilder
- setupAction
- Action<RazorViewEngineOptions>
Akce nastavení, která konfiguruje RazorViewEngineOptions.
Návraty
Hodnota IMvcCoreBuilder