Partilhar via


MvcRazorPagesMvcBuilderExtensions.WithRazorPagesRoot Método

Definição

Configura o Razor Pages para usar o especificado rootDirectory.

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

Parâmetros

rootDirectory
String

O caminho relativo do aplicativo a ser usado como o diretório raiz.

Retornos

O IMvcBuilder.

Aplica-se a