Condividi tramite


MvcRazorMvcBuilderExtensions.AddRazorOptions Metodo

Definizione

Configura un set di RazorViewEngineOptions per l'applicazione.

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddRazorOptions (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> setupAction);
static member AddRazorOptions : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddRazorOptions (builder As IMvcBuilder, setupAction As Action(Of RazorViewEngineOptions)) As IMvcBuilder

Parametri

builder
IMvcBuilder

Oggetto IMvcBuilder.

setupAction
Action<RazorViewEngineOptions>

Azione per configurare .RazorViewEngineOptions

Restituisce

Oggetto IMvcBuilder.

Si applica a