MvcViewFeaturesMvcCoreBuilderExtensions.AddViews 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddViews(IMvcCoreBuilder) |
添加视图相关服务。 |
AddViews(IMvcCoreBuilder, Action<MvcViewOptions>) |
添加视图相关服务。 |
AddViews(IMvcCoreBuilder)
添加视图相关服务。
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViews (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddViews : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddViews (builder As IMvcCoreBuilder) As IMvcCoreBuilder
参数
- builder
- IMvcCoreBuilder
返回
适用于
AddViews(IMvcCoreBuilder, Action<MvcViewOptions>)
添加视图相关服务。
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViews (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.MvcViewOptions> setupAction);
static member AddViews : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.MvcViewOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddViews (builder As IMvcCoreBuilder, setupAction As Action(Of MvcViewOptions)) As IMvcCoreBuilder
参数
- builder
- IMvcCoreBuilder
- setupAction
- Action<MvcViewOptions>
的 MvcViewOptions安装操作。