ControllerEndpointRouteBuilderExtensions.MapDefaultControllerRoute Metoda

Definice

Přidá koncové body pro akce kontroleru do IEndpointRouteBuilder a přidá výchozí trasu {controller=Home}/{action=Index}/{id?}.

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

Návraty

Pro ControllerActionEndpointConventionBuilder koncové body přidružené k akcím kontroleru pro tuto trasu.

Platí pro