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>

用于配置所提供的 MvcViewOptionsAction<T>

返回

IMvcBuilder

适用于