Udostępnij za pośrednictwem


ControllerEndpointRouteBuilderExtensions.MapDefaultControllerRoute Metoda

Definicja

Dodaje punkty końcowe dla akcji kontrolera do IEndpointRouteBuilder elementu i dodaje trasę {controller=Home}/{action=Index}/{id?}domyślną .

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

Parametry

Zwraca

Element ControllerActionEndpointConventionBuilder dla punktów końcowych skojarzonych z akcjami kontrolera dla tej trasy.

Dotyczy