Compartir a través de


ControllerEndpointRouteBuilderExtensions.MapDefaultControllerRoute Método

Definición

Agrega puntos de conexión para las acciones del controlador a IEndpointRouteBuilder y agrega la ruta {controller=Home}/{action=Index}/{id?}predeterminada .

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::ControllerActionEndpointConventionBuilder ^ MapDefaultControllerRoute(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints);
public static Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder MapDefaultControllerRoute (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints);
static member MapDefaultControllerRoute : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder -> Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder
<Extension()>
Public Function MapDefaultControllerRoute (endpoints As IEndpointRouteBuilder) As ControllerActionEndpointConventionBuilder

Parámetros

Devoluciones

para ControllerActionEndpointConventionBuilder puntos de conexión asociados a acciones de controlador para esta ruta.

Se aplica a