MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Metoda

Definice

Přetížení

AddRazorPages(IMvcCoreBuilder)

Registrace potřebných služeb pro Razor Pages

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Registrace potřebných služeb pro Razor Pages

AddRazorPages(IMvcCoreBuilder)

Zdroj:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Zdroj:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Zdroj:
MvcRazorPagesMvcCoreBuilderExtensions.cs

Registrace potřebných služeb pro Razor Pages

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

Parametry

Návraty

Hodnota IMvcCoreBuilder

Platí pro

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Zdroj:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Zdroj:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Zdroj:
MvcRazorPagesMvcCoreBuilderExtensions.cs

Registrace potřebných služeb pro Razor Pages

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

Parametry

setupAction
Action<RazorPagesOptions>

Akce pro nastavení .RazorPagesOptions

Návraty

Hodnota IMvcCoreBuilder

Platí pro