다음을 통해 공유


MvcRazorMvcBuilderExtensions.AddRazorOptions 메서드

정의

애플리케이션에 대한 집합 RazorViewEngineOptions 을 구성합니다.

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

매개 변수

setupAction
Action<RazorViewEngineOptions>

를 구성하는 작업입니다 RazorViewEngineOptions.

반환

IMvcBuilder

적용 대상