Sdílet prostřednictvím


MvcApplicationBuilderExtensions.UseMvc Metoda

Definice

Přetížení

UseMvc(IApplicationBuilder)

Přidá MVC do IApplicationBuilder kanálu provádění požadavků.

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Přidá MVC do IApplicationBuilder kanálu provádění požadavků.

UseMvc(IApplicationBuilder)

Zdroj:
MvcApplicationBuilderExtensions.cs
Zdroj:
MvcApplicationBuilderExtensions.cs
Zdroj:
MvcApplicationBuilderExtensions.cs

Přidá MVC do IApplicationBuilder kanálu provádění požadavků.

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

Parametry

Návraty

Odkaz na tuto instanci po dokončení operace.

Poznámky

Tato metoda podporuje pouze směrování atributů. Pokud chcete přidat konvenční trasy, použijte UseMvc(IApplicationBuilder, Action<IRouteBuilder>).

Platí pro

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Zdroj:
MvcApplicationBuilderExtensions.cs
Zdroj:
MvcApplicationBuilderExtensions.cs
Zdroj:
MvcApplicationBuilderExtensions.cs

Přidá MVC do IApplicationBuilder kanálu provádění požadavků.

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

Parametry

configureRoutes
Action<IRouteBuilder>

Zpětné volání pro konfiguraci tras MVC.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro