Partager via


MvcRazorPagesMvcCoreBuilderExtensions.WithRazorPagesRoot Méthode

Définition

Configure Razor Pages pour utiliser le spécifié rootDirectory.

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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

rootDirectory
String

Chemin d’accès relatif de l’application à utiliser comme répertoire racine.

Retours

S’applique à