다음을 통해 공유


MvcViewFeaturesMvcBuilderExtensions.AddViewOptions 메서드

정의

애플리케이션에 대한 구성 MvcViewOptions 을 추가합니다.

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

매개 변수

setupAction
Action<MvcViewOptions>

제공된 MvcViewOptions를 구성하는 Action<T>입니다.

반환

IMvcBuilder

적용 대상