Condividi tramite


MvcRazorPagesMvcBuilderExtensions.WithRazorPagesRoot Metodo

Definizione

Configura Razor Pages per l'uso dell'oggetto specificato 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

Parametri

builder
IMvcBuilder

Oggetto IMvcCoreBuilder.

rootDirectory
String

Percorso relativo dell'applicazione da usare come directory radice.

Restituisce

Oggetto IMvcBuilder.

Si applica a