다음을 통해 공유


MvcCoreMvcBuilderExtensions.AddMvcOptions 메서드

정의

를 구성하는 MvcOptions작업을 등록합니다.

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

매개 변수

setupAction
Action<MvcOptions>

Action<T>입니다.

반환

IMvcBuilder

적용 대상