Partager via


MvcViewFeaturesMvcCoreBuilderExtensions.AddViews Méthode

Définition

Surcharges

AddViews(IMvcCoreBuilder)

Ajouter des services associés à la vue.

AddViews(IMvcCoreBuilder, Action<MvcViewOptions>)

Ajouter des services associés à la vue.

AddViews(IMvcCoreBuilder)

Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs

Ajouter des services associés à la vue.

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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

Retours

L’IMvcCoreBuilderopérateur

S’applique à

AddViews(IMvcCoreBuilder, Action<MvcViewOptions>)

Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs
Source:
MvcViewFeaturesMvcCoreBuilderExtensions.cs

Ajouter des services associés à la vue.

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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

setupAction
Action<MvcViewOptions>

Action d’installation pour MvcViewOptions.

Retours

L’IMvcCoreBuilderopérateur

S’applique à