ControllerEndpointRouteBuilderExtensions.MapDefaultControllerRoute Methode

Definition

Fügt Endpunkte für Controlleraktionen hinzu und fügt die IEndpointRouteBuilder Standardroute {controller=Home}/{action=Index}/{id?}hinzu.

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

Parameter

Gibt zurück

Ein ControllerActionEndpointConventionBuilder für Endpunkte, die Controlleraktionen für diese Route zugeordnet sind.

Gilt für: