Compartir a través de


MvcApplicationBuilderExtensions.UseMvc Método

Definición

Sobrecargas

UseMvc(IApplicationBuilder)

Agrega MVC a la canalización de IApplicationBuilder ejecución de solicitudes.

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Agrega MVC a la canalización de IApplicationBuilder ejecución de solicitudes.

UseMvc(IApplicationBuilder)

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

Agrega MVC a la canalización de IApplicationBuilder ejecución de solicitudes.

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

Parámetros

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Comentarios

Este método solo admite el enrutamiento de atributos. Para agregar rutas convencionales, use UseMvc(IApplicationBuilder, Action<IRouteBuilder>).

Se aplica a

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

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

Agrega MVC a la canalización de IApplicationBuilder ejecución de solicitudes.

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

Parámetros

configureRoutes
Action<IRouteBuilder>

Devolución de llamada para configurar rutas de MVC.

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Se aplica a