ControllerEndpointRouteBuilderExtensions.MapDefaultControllerRoute Metodo

Definizione

Aggiunge gli endpoint per le azioni del controller all'oggetto IEndpointRouteBuilder e aggiunge la route {controller=Home}/{action=Index}/{id?}predefinita.

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

Parametri

Restituisce

Oggetto ControllerActionEndpointConventionBuilder per gli endpoint associati alle azioni del controller per questa route.

Si applica a