MvcViewFeaturesMvcBuilderExtensions.AddViewOptions Metoda

Definicja

Dodaje konfigurację MvcViewOptions aplikacji.

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

Parametry

builder
IMvcBuilder

Element IMvcBuilder.

setupAction
Action<MvcViewOptions>

Element Action<T> do skonfigurowania podanego MvcViewOptionselementu .

Zwraca

Element IMvcBuilder.

Dotyczy