Partager via


MvcApplicationBuilderExtensions.UseMvc Méthode

Définition

Surcharges

UseMvc(IApplicationBuilder)

Ajoute MVC au pipeline d’exécution de la IApplicationBuilder requête.

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Ajoute MVC au pipeline d’exécution de la IApplicationBuilder requête.

UseMvc(IApplicationBuilder)

Source:
MvcApplicationBuilderExtensions.cs
Source:
MvcApplicationBuilderExtensions.cs
Source:
MvcApplicationBuilderExtensions.cs

Ajoute MVC au pipeline d’exécution de la IApplicationBuilder requête.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseMvc(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMvc (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseMvc : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMvc (app As IApplicationBuilder) As IApplicationBuilder

Paramètres

Retours

Référence à cette instance à la fin de l’opération.

Remarques

Cette méthode prend uniquement en charge le routage d’attributs. Pour ajouter des routes conventionnelles, utilisez UseMvc(IApplicationBuilder, Action<IRouteBuilder>).

S’applique à

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Source:
MvcApplicationBuilderExtensions.cs
Source:
MvcApplicationBuilderExtensions.cs
Source:
MvcApplicationBuilderExtensions.cs

Ajoute MVC au pipeline d’exécution de la IApplicationBuilder requête.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseMvc(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Action<Microsoft::AspNetCore::Routing::IRouteBuilder ^> ^ configureRoutes);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMvc (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.Routing.IRouteBuilder> configureRoutes);
static member UseMvc : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.Routing.IRouteBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMvc (app As IApplicationBuilder, configureRoutes As Action(Of IRouteBuilder)) As IApplicationBuilder

Paramètres

configureRoutes
Action<IRouteBuilder>

Rappel pour configurer les routes MVC.

Retours

Référence à cette instance à la fin de l’opération.

S’applique à