Sdílet prostřednictvím


MvcRazorPagesMvcCoreBuilderExtensions.WithRazorPagesRoot Metoda

Definice

Nakonfiguruje razor Pages tak, aby používaly zadanou rootDirectoryhodnotu .

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder WithRazorPagesRoot (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, string rootDirectory);
static member WithRazorPagesRoot : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * string -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function WithRazorPagesRoot (builder As IMvcCoreBuilder, rootDirectory As String) As IMvcCoreBuilder

Parametry

rootDirectory
String

Relativní cesta aplikace, která se má použít jako kořenový adresář.

Návraty

Platí pro